Block JSON schema & PHP-only blocks: Add autoRegister support - #80173
Conversation
|
Size Change: 0 B Total Size: 7.71 MB |
|
Flaky tests detected in e088c51. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/29242263162
|
e088c51 to
39ca6a7
Compare
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
What
Part of #79330.
Adds
autoRegisterto theblock.jsonschema. Block authors will now get autocomplete for the setting, and values such as"yes"will show a schema error instead of being silently accepted.Why
autoRegisteralready works for PHP-only blocks, but the schema does not know about it yet.Testing Instructions
test/integration/fixtures/block-schemas/invalid-auto-register.jsonin an editor with JSON schema validation."autoRegister": "yes"is marked as invalid.true, check that the error disappears, then undo the change.I used Claude to help implement these changes. I guided the work, then tested and reviewed the result.