Skip to content

Commit

Permalink
Rename individual settings properties definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Jul 17, 2024
1 parent 5c3daa6 commit d22658b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion bin/api-docs/gen-theme-reference.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const formatType = ( prop ) => {
// Settings
const settings = Object.entries( themejson.definitions )
.filter( ( [ settingsKey ] ) =>
/^settingsProperties(?!Complete)\w+$/.test( settingsKey )
/^settings\w+Properties$/.test( settingsKey )
)
.reduce(
( settingsObj, [ , { properties } ] ) =>
Expand Down
48 changes: 24 additions & 24 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"additionalProperties": false
},
"settingsPropertiesAppearanceTools": {
"settingsAppearanceToolsProperties": {
"type": "object",
"properties": {
"appearanceTools": {
Expand All @@ -27,7 +27,7 @@
}
}
},
"settingsPropertiesBackground": {
"settingsBackgroundProperties": {
"type": "object",
"properties": {
"background": {
Expand All @@ -49,7 +49,7 @@
}
}
},
"settingsPropertiesBorder": {
"settingsBorderProperties": {
"type": "object",
"properties": {
"border": {
Expand Down Expand Up @@ -81,7 +81,7 @@
}
}
},
"settingsPropertiesColor": {
"settingsColorProperties": {
"type": "object",
"properties": {
"color": {
Expand Down Expand Up @@ -226,7 +226,7 @@
}
}
},
"settingsPropertiesDimensions": {
"settingsDimensionsProperties": {
"type": "object",
"properties": {
"dimensions": {
Expand Down Expand Up @@ -274,7 +274,7 @@
}
}
},
"settingsPropertiesLayout": {
"settingsLayoutProperties": {
"type": "object",
"properties": {
"layout": {
Expand Down Expand Up @@ -304,7 +304,7 @@
}
}
},
"settingsPropertiesLightbox": {
"settingsLightboxProperties": {
"type": "object",
"properties": {
"lightbox": {
Expand All @@ -324,7 +324,7 @@
}
}
},
"settingsPropertiesPosition": {
"settingsPositionProperties": {
"type": "object",
"properties": {
"position": {
Expand All @@ -346,7 +346,7 @@
}
}
},
"settingsPropertiesShadow": {
"settingsShadowProperties": {
"type": "object",
"properties": {
"shadow": {
Expand Down Expand Up @@ -386,7 +386,7 @@
}
}
},
"settingsPropertiesSpacing": {
"settingsSpacingProperties": {
"type": "object",
"properties": {
"spacing": {
Expand Down Expand Up @@ -524,7 +524,7 @@
}
}
},
"settingsPropertiesTypography": {
"settingsTypographyProperties": {
"type": "object",
"properties": {
"typography": {
Expand Down Expand Up @@ -786,7 +786,7 @@
}
}
},
"settingsPropertiesCustom": {
"settingsCustomProperties": {
"type": "object",
"properties": {
"custom": {
Expand All @@ -796,18 +796,18 @@
},
"settingsProperties": {
"allOf": [
{ "$ref": "#/definitions/settingsPropertiesAppearanceTools" },
{ "$ref": "#/definitions/settingsPropertiesBackground" },
{ "$ref": "#/definitions/settingsPropertiesBorder" },
{ "$ref": "#/definitions/settingsPropertiesColor" },
{ "$ref": "#/definitions/settingsPropertiesDimensions" },
{ "$ref": "#/definitions/settingsPropertiesLayout" },
{ "$ref": "#/definitions/settingsPropertiesLightbox" },
{ "$ref": "#/definitions/settingsPropertiesPosition" },
{ "$ref": "#/definitions/settingsPropertiesShadow" },
{ "$ref": "#/definitions/settingsPropertiesSpacing" },
{ "$ref": "#/definitions/settingsPropertiesTypography" },
{ "$ref": "#/definitions/settingsPropertiesCustom" }
{ "$ref": "#/definitions/settingsAppearanceToolsProperties" },
{ "$ref": "#/definitions/settingsBackgroundProperties" },
{ "$ref": "#/definitions/settingsBorderProperties" },
{ "$ref": "#/definitions/settingsColorProperties" },
{ "$ref": "#/definitions/settingsDimensionsProperties" },
{ "$ref": "#/definitions/settingsLayoutProperties" },
{ "$ref": "#/definitions/settingsLightboxProperties" },
{ "$ref": "#/definitions/settingsPositionProperties" },
{ "$ref": "#/definitions/settingsShadowProperties" },
{ "$ref": "#/definitions/settingsSpacingProperties" },
{ "$ref": "#/definitions/settingsTypographyProperties" },
{ "$ref": "#/definitions/settingsCustomProperties" }
]
},
"settingsPropertyNames": {
Expand Down

0 comments on commit d22658b

Please sign in to comment.