Skip to content

Commit

Permalink
Add JSON Schema for WordPress block.json files (#1879)
Browse files Browse the repository at this point in the history
* start working on wordpress block.json schema

* add all top level definitions

* add deffinition of all subtypes

* fix patterns

* add refference links

* update example schema

* fix type of attribute.default

* remove __experimentalDuotone from the schema

* fix typo in references and switch to camelCase

* reorder properties to follow the pattern `type` `description` `default` `items` /  `properties`

* fix description length

* fix schema of `supports.spacing`

* update example

* cut down on length of descriptions

* remove unsupported `deprecated` attribute
  • Loading branch information
fabiankaegy authored Oct 18, 2021
1 parent 1efc448 commit 8f71ddd
Show file tree
Hide file tree
Showing 3 changed files with 500 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,14 @@
],
"url": "https://json.schemastore.org/bungee-plugin.json"
},
{
"name": "block.json",
"description": "Schema WordPress block.json files",
"fileMatch": [
"block.json"
],
"url": "https://json.schemastore.org/block.json"
},
{
"name": "CMake Presets",
"description": "Schema for CMake Presets",
Expand Down
Loading

0 comments on commit 8f71ddd

Please sign in to comment.