You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request about a new command, or a more general idea?
Not really – it is rather common for JSON-compatible configuration files (e.g. JSON/YAML/TOML) to define and publish a discoverable JSON Schema declaration. Since wp-cli.yml already exists and has a clear definition, publishing structured metadata about its format has a clearly-defined scope with many existing examples to follow.
Describe your use case and the problem you are facing
As a developer creating a new or editing an existing YAML config file for WP-CLI, I would like to use my text editor's integrated support for autocompletion, inline documentation, and validation of my file so that I can remain within my editor without needing to mentally compute the supported configuration structure/keys/values as listed in Config – WP-CLI – WordPress.org.
Describe the solution you'd like
Generate a comprehensive JSON Schema for the WP-CLI configuration file specification. If it exists already (I haven't found it), it should be made more discoverable. I would like to see it included in the JSON Schema Store, which would automatically be ingested by VS Code et al.
https://github.com/jsonsystems/public#cli – JSON Schema generator from an example JSON file (untested, but hey, it might help kick things off if it works well enough)
The text was updated successfully, but these errors were encountered:
montchr
changed the title
Add or make discoverable JSON Schema for config files (e.g. wp-cli.yml)
Add discoverable JSON Schema for config files (e.g. wp-cli.yml)
Jan 5, 2023
Feature Request
Is your feature request directly related to a specific, existing command?
No – this applies to configuration files for WP-CLI as described in https://make.wordpress.org/cli/handbook/references/config/
Is your feature request about a new command, or a more general idea?
Not really – it is rather common for JSON-compatible configuration files (e.g. JSON/YAML/TOML) to define and publish a discoverable JSON Schema declaration. Since
wp-cli.yml
already exists and has a clear definition, publishing structured metadata about its format has a clearly-defined scope with many existing examples to follow.Describe your use case and the problem you are facing
As a developer creating a new or editing an existing YAML config file for WP-CLI, I would like to use my text editor's integrated support for autocompletion, inline documentation, and validation of my file so that I can remain within my editor without needing to mentally compute the supported configuration structure/keys/values as listed in Config – WP-CLI – WordPress.org.
Describe the solution you'd like
Generate a comprehensive JSON Schema for the WP-CLI configuration file specification. If it exists already (I haven't found it), it should be made more discoverable. I would like to see it included in the JSON Schema Store, which would automatically be ingested by VS Code et al.
Maybe-Relevant Examples
.eslintrc
: https://json.schemastore.org/eslintrc.jsonFurther References
jsn
CLI listed above (requires account?!)The text was updated successfully, but these errors were encountered: