Skip to content

Commit 7b88c53

Browse files
refactor: improve schema
1 parent 00d83c3 commit 7b88c53

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

lib/options.json

+12-6
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
],
5656
"description": "Watch for files in static content directory."
5757
}
58-
}
58+
},
59+
"required": ["directory"]
5960
},
6061
"StaticString": {
6162
"type": "string",
@@ -138,6 +139,9 @@
138139
},
139140
"WatchFilesObject": {
140141
"type": "object",
142+
"cli": {
143+
"exclude": true
144+
},
141145
"properties": {
142146
"paths": {
143147
"anyOf": [
@@ -159,7 +163,8 @@
159163
"additionalProperties": true
160164
}
161165
},
162-
"additionalProperties": false
166+
"additionalProperties": false,
167+
"required": ["paths"]
163168
},
164169
"WebSocketServerEnum": {
165170
"enum": ["sockjs", "ws"]
@@ -173,6 +178,9 @@
173178
},
174179
"WebSocketServerObject": {
175180
"type": "object",
181+
"cli": {
182+
"exclude": true
183+
},
176184
"properties": {
177185
"type": {
178186
"anyOf": [
@@ -515,8 +523,7 @@
515523
"$ref": "#/definitions/OpenObject"
516524
}
517525
]
518-
},
519-
"minItems": 1
526+
}
520527
},
521528
{
522529
"$ref": "#/definitions/OpenBoolean"
@@ -587,8 +594,7 @@
587594
"$ref": "#/definitions/StaticObject"
588595
}
589596
]
590-
},
591-
"minItems": 1
597+
}
592598
},
593599
{
594600
"type": "boolean"

0 commit comments

Comments
 (0)