Skip to content

Commit

Permalink
feat: simplify theme schema
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyGraceSeville7cf authored and sharkdp committed Apr 7, 2024
1 parent 738dce1 commit e06fd14
Showing 1 changed file with 35 additions and 36 deletions.
71 changes: 35 additions & 36 deletions schemas/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,43 +48,42 @@
"title": "file type association",
"description": "A file type association",
"type": ["object", "null"],
"anyOf": [
{
"properties": {
"text": {
"$ref": "#/definitions/file_type_association"
},
"markup": {
"$ref": "#/definitions/file_type_association"
},
"programming": {
"$ref": "#/definitions/file_type_association"
},
"unimportant": {
"$ref": "#/definitions/file_type_association"
}
},
"patternProperties": {
".": {
"$ref": "#/definitions/file_type_association"
}
}
},
{
"properties": {
"background": {
"title": "background",
"description": "A reference to a background color defined in 'colors' property",
"$ref": "#/definitions/color_reference"
},
"foreground": {
"title": "foreground",
"description": "A reference to a foreground color defined in 'colors' property",
"$ref": "#/definitions/color_reference"
}
}
"properties": {
"background": {
"title": "background",
"description": "A reference to a background color defined in 'colors' property",
"$ref": "#/definitions/color_reference"
},
"foreground": {
"title": "foreground",
"description": "A reference to a foreground color defined in 'colors' property",
"$ref": "#/definitions/color_reference"
},
"font-style": {
"title": "font style",
"description": "A font style",
"type": "string",
"enum": ["bold", "italic", "underline"]
},
"text": {
"$ref": "#/definitions/file_type_association"
},
"markup": {
"$ref": "#/definitions/file_type_association"
},
"programming": {
"$ref": "#/definitions/file_type_association"
},
"unimportant": {
"$ref": "#/definitions/file_type_association"
}
]
},
"patternProperties": {
".": {
"$ref": "#/definitions/file_type_association"
}
},
"additionalProperties": false
}
},
"title": "theme",
Expand Down

0 comments on commit e06fd14

Please sign in to comment.