Skip to content
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

Add the block.json schema to each block.json file #167

Merged
merged 2 commits into from
Oct 21, 2021
Merged

Conversation

mkaz
Copy link
Member

@mkaz mkaz commented Oct 21, 2021

Added schema defintion to each file, this allows validation and auto complete in supported browers.

"$schema": "https://json.schemastore.org/block.json"

Required fixing the textDomain => textdomain

Highlighted an issue with source: children still being used when it should be switched to html.

See comment here: WordPress/gutenberg#10439 (comment)

Added schea defintion to each file, this allows validation and auto
complete in supported browers.

	"$schema": "https://json.schemastore.org/block.json"

Required fixing the textDomain => textdomain

Highlighted an issue with `source: children` not documented.
In the attributes, The source of `children` is no longer supported and should be
changed to `html` along with the type changing to `string`.

See PR comment here:
WordPress/gutenberg#10439 (comment)
@mkaz mkaz requested a review from ryanwelcher October 21, 2021 16:31
@mkaz mkaz merged commit df2f011 into trunk Oct 21, 2021
@mkaz mkaz deleted the add/block-schema branch October 21, 2021 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants