-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add block nesting governance schema updates and docs #43801
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
Closed
alecgeatches
wants to merge
17
commits into
WordPress:trunk
from
alecgeatches:add/theme-schema-updates-and-docs
Closed
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7bc6ee9
Add failing test for valid theme.json schema
alecgeatches ce7e75a
Fix missing property object types
alecgeatches 66bf0b8
Remove type conflict in fontWeight
alecgeatches 5700764
Refactor fontSizes.fluid into non-union type
alecgeatches 6095a7a
Fix core/archives non-property block having additionalProperties: false
alecgeatches cd3e2b3
Fix stylesProperties type
alecgeatches 441f338
Fix styleProperties border direction properties
alecgeatches b49655d
Add required schema, required strict skips to test
alecgeatches f89f936
Run docs:build for theme.json schema changes
alecgeatches fbb57ec
Upgrade theme.json schema to draft-07, add nesting
alecgeatches f60681f
Add an example of a nested block's settings in the theme.json
ingeniumed ce20a4c
Fix test to directly validate schema against spec
alecgeatches cea1e32
Fix core/archives block to have object type
alecgeatches 1b850f9
Convert to draft-04, use *Complete properties
alecgeatches 8d223d0
Update schema test to use draft-04 and test compilation
alecgeatches c6e6bd2
Change blocks to use regular properties by default
alecgeatches 7749202
Update blocks with inner blocks to use nested properties
alecgeatches File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix core/archives non-property block having additionalProperties: false
- Loading branch information
commit 6095a7ab7210ae9ebb3f119283c8c0a1d6886d58
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The archives block does not have any block-level settings, so we should probably update this to add
"type": "object"rather than removing"additionalProperties": falseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, that makes sense to me!