Skip to content

Commit

Permalink
Fix Font Collection JSON schema definition (#60285)
Browse files Browse the repository at this point in the history
* Fix Font Collection JSON schema definition

* Don't mark fontFace field as required

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: matiasbenedetto <[email protected]>
Co-authored-by: creativecoder <[email protected]>
Co-authored-by: justintadlock <[email protected]>
  • Loading branch information
5 people authored Apr 3, 2024
1 parent c267df5 commit 80ff5e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions schemas/json/font-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "object",
"definitions": {
"fontFace": {
"description": "Font face theme.json settings, with added preview property.",
"description": "Font face settings, with added preview property.",
"type": "object",
"properties": {
"preview": {
Expand Down Expand Up @@ -107,7 +107,7 @@
"type": "object",
"properties": {
"font_family_settings": {
"description": "Font family theme.json settings, with added preview property.",
"description": "Font family settings, with added preview property.",
"type": "object",
"properties": {
"name": {
Expand Down Expand Up @@ -138,6 +138,7 @@
}
}
},
"required": [ "name", "fontFamily", "slug" ],
"additionalProperties": false
},
"categories": {
Expand All @@ -154,5 +155,5 @@
}
},
"additionalProperties": false,
"required": [ "$schema", "slug", "name", "font_families" ]
"required": [ "font_families" ]
}

0 comments on commit 80ff5e8

Please sign in to comment.