-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wp-env: $schema property is not allowed #62619
Comments
Perhaps we need to submit a PR to the Schema Store repository, as was done by theme.json and block.json? For example, if I directly reference the schema in the Gutenberg repository, it works correctly. However, if I use the same format as |
Yes, we should do that, but that's just for inclusion in that directory of schemas. The issue here is that the tool itself rejects configuration values that it does not recognize: gutenberg/packages/env/lib/config/parse-config.js Lines 415 to 438 in 708ce27
|
There must be a whitelist for the wp.org redirects somewhere. We made a systems request for the initial JSON Schema. I don't seems to have access to make a systems request, so I'm asking around to get it fixed. |
I think I know what's going on. The redirects probably don't support dotfiles. I checked the schemastore website and they don't do dotfiles either. I think we should follow their lead and use wp-env.json for the filename instead. EDIT: Opened #62634 |
#36276 added a JSON schema for wp-env, but if the
$schema
property appears in wp-env configuration, it throws an error:It should allow that property, or possibly even better use the schema to parse configuration.
Originally posted by @sirreal in #36276 (comment)
The text was updated successfully, but these errors were encountered: