Add JSON schema for `wp-cli.yml`
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
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:loudspeaker: Thoughts on this report? Let us know!
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.
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.
@johnbillion @ernilambar Thanks for your help! Here's the draft PR for adding this to schemastore: https://github.com/SchemaStore/schemastore/pull/4824