Skip to content

Commit

Permalink
Add "minItems": 1 to all arrays
Browse files Browse the repository at this point in the history
prevents accidentally leaving behind unnecessary empty arrays
  • Loading branch information
Gjum committed Aug 23, 2015
1 parent d183be8 commit 3064db8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enums_schemas/windows_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "windows",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "window",
Expand All @@ -19,6 +20,7 @@
"slots": {
"description": "The slots displayed in the window",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"description": "A slot or slot range in the window",
Expand Down Expand Up @@ -49,13 +51,15 @@
"properties": {
"description": "Names of the properties of the window",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"buttons": {
"description": "Names of the buttons of the window",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
Expand Down

0 comments on commit 3064db8

Please sign in to comment.