Skip to content

Commit

Permalink
Add styles.blocks.variations to theme.json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jan 18, 2024
1 parent 6fb1cfb commit 3153e0e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -2164,6 +2164,9 @@
},
"core/widget-group": {
"$ref": "#/definitions/stylesPropertiesAndElementsComplete"
},
"variations": {
"$ref": "#/definitions/stylesVariationsPropertiesComplete"
}
},
"patternProperties": {
Expand Down Expand Up @@ -2194,7 +2197,7 @@
"$ref": "#/definitions/stylesElementsPropertiesComplete"
},
"variations": {
"$ref": "#/definitions/stylesVariationsPropertiesComplete"
"$ref": "#/definitions/stylesVariationsPropertiesAndRefComplete"
}
},
"additionalProperties": false
Expand All @@ -2209,6 +2212,21 @@
}
}
},
"stylesVariationsPropertiesAndRefComplete": {
"type": "object",
"patternProperties": {
"^[a-z][a-z0-9-]*$": {
"oneOf": [
{
"$ref": "#/definitions/refComplete"
},
{
"$ref": "#/definitions/stylesVariationPropertiesComplete"
}
]
}
}
},
"stylesVariationPropertiesComplete": {
"type": "object",
"allOf": [
Expand Down

0 comments on commit 3153e0e

Please sign in to comment.