Skip to content

Commit

Permalink
Merge pull request #18 from Wolfy76700/json_schema
Browse files Browse the repository at this point in the history
Added restriction on variant image
  • Loading branch information
Wolfy76700 authored Mar 17, 2024
2 parents 167c2e3 + a08ebcf commit fc4d939
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .schema/controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,14 @@
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
"type": "string",
"title": "Image"
},
"image": {
"type": "string"
"type": "string",
"pattern": "(.*)\\.(p|P)(n|N)(g|G)",
"title": "Image",
"description": "Name of a PNG image showing the mentionned variant\nThe image must be placed in the same folder as this config file\nNote: At least one of the variants must use the default `image.png` file"
}
},
"required": [
Expand Down

0 comments on commit fc4d939

Please sign in to comment.