Skip to content

Commit 0d3d90c

Browse files
refactor: improve schema
1 parent 50b4251 commit 0d3d90c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

lib/options.json

Lines changed: 12 additions & 6 deletions
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": [
@@ -514,8 +522,7 @@
514522
"$ref": "#/definitions/OpenObject"
515523
}
516524
]
517-
},
518-
"minItems": 1
525+
}
519526
},
520527
{
521528
"$ref": "#/definitions/OpenBoolean"
@@ -586,8 +593,7 @@
586593
"$ref": "#/definitions/StaticObject"
587594
}
588595
]
589-
},
590-
"minItems": 1
596+
}
591597
},
592598
{
593599
"type": "boolean"

0 commit comments

Comments
 (0)