wp-cli icon indicating copy to clipboard operation
wp-cli copied to clipboard

Add JSON schema for `wp-cli.yml`

Open swissspidy opened this issue 7 months ago • 1 comments

Still work in progress.

Doesn't seem to work for aliases yet 🤔

Some automated validation would be nice, maybe with a GitHub Action.

This could be added to https://www.schemastore.org/json/ eventually.

Fixes #5718

swissspidy avatar May 09 '25 11:05 swissspidy

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:loudspeaker: Thoughts on this report? Let us know!

codecov[bot] avatar May 09 '25 11:05 codecov[bot]

It would be good to have some tests in place for this. I've used ajv-cli in several projects but it doesn't look like it supports YAML input. Maybe best done in a follow-up issue.

johnbillion avatar Jul 02 '25 10:07 johnbillion

It would be good to have some tests in place for this. I've used ajv-cli in several projects but it doesn't look like it supports YAML input. Maybe best done in a follow-up issue.

Agreed. Haven't found a good tool with YAML support so far.

swissspidy avatar Jul 02 '25 10:07 swissspidy

@johnbillion @ernilambar Thanks for your help! Here's the draft PR for adding this to schemastore: https://github.com/SchemaStore/schemastore/pull/4824

swissspidy avatar Jul 03 '25 09:07 swissspidy