Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

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

Merged
mkaz merged 2 commits intotrunkfrom
add/block-schema
Oct 21, 2021
Merged

Add the block.json schema to each block.json file#167
mkaz merged 2 commits intotrunkfrom
add/block-schema

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)

mkaz added 2 commits October 20, 2021 20:49
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants