Skip to content

Commit

Permalink
Update JSON Schemas to Draft 7 (WordPress#63583)
Browse files Browse the repository at this point in the history
* Run ajv-cli migrate on JSON schemas

* Migrate additionalProperties to propertyNames where reuse is needed

* Update tests to use Ajv Draft 7

* Remove ajv-draft-04

* Fix test string

* Add tests for all propertyNames changes

Unlinked contributors: DivyanshVinayak23.

Co-authored-by: ajlende <[email protected]>
Co-authored-by: scruffian <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
4 people authored Jul 23, 2024
1 parent 90a058f commit 1502969
Show file tree
Hide file tree
Showing 18 changed files with 317 additions and 183 deletions.
21 changes: 0 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@
"@wordpress/scripts": "file:packages/scripts",
"@wordpress/stylelint-config": "file:packages/stylelint-config",
"ajv": "8.7.1",
"ajv-draft-04": "1.0.0",
"appium": "2.0.0",
"babel-jest": "29.7.0",
"babel-loader": "9.1.3",
Expand Down
2 changes: 1 addition & 1 deletion schemas/json/block.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "JSON schema for WordPress blocks",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"//": {
"reference": "https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/",
Expand Down
2 changes: 1 addition & 1 deletion schemas/json/font-collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "JSON schema for WordPress Font Collections",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"definitions": {
"fontFace": {
Expand Down
Loading

0 comments on commit 1502969

Please sign in to comment.