[wp-trac] [WordPress Trac] #50615: Editor: Create standalone JSON schema for block type definition
WordPress Trac
noreply at wordpress.org
Fri Apr 23 07:48:04 UTC 2021
#50615: Editor: Create standalone JSON schema for block type definition
-----------------------------+------------------------------
Reporter: gziolo | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
-----------------------------+------------------------------
Comment (by gziolo):
It looks like we settled on the i18n schema for both `block.json` and
`theme.json`. The most recent work for `block.json`:
https://github.com/WordPress/gutenberg/pull/30293
It looks this way:
{{{
{
"title": "block title",
"description": "block description",
"keywords": [ "block keyword" ],
"styles": [
{
"label": "block style label"
}
],
"variations": [
{
"title": "block variation title",
"description": "block variation description",
"keywords": [ "block variation keyword" ]
}
]
}
}}}
It should be enough to use it as a shared schema for WP-CLI and WP core.
The question is how would it be consumed? In WP Core we could copy the
file with webpack from the published npm module. What would be the
preference for WP CLI?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50615#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list