Skip to content

Commit

Permalink
Schemas: Allow custom blocks in theme.json styles (#36411)
Browse files Browse the repository at this point in the history
* Schemas: Allow custom blocks in theme.json styles

* Remove allOf and use patternProperties
  • Loading branch information
Petter Walbø Johnsgård authored and Mamaduka committed Feb 16, 2022
1 parent fce20dc commit 2665ea9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions schemas/json/theme.json
Expand Up @@ -578,6 +578,11 @@
"$ref": "#/definitions/settingsPropertiesComplete"
}
},
"patternProperties": {
"^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$": {
"$ref": "#/definitions/settingsPropertiesComplete"
}
},
"additionalProperties": false
},
"settingsCustomAdditionalProperties": {
Expand Down Expand Up @@ -1035,6 +1040,11 @@
"$ref": "#/definitions/stylesPropertiesAndElementsComplete"
}
},
"patternProperties": {
"^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$": {
"$ref": "#/definitions/stylesPropertiesAndElementsComplete"
}
},
"additionalProperties": false
},
"stylesPropertiesAndElementsComplete": {
Expand Down

0 comments on commit 2665ea9

Please sign in to comment.