File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/plugins/json-schema-validator Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -251,10 +251,15 @@ definitions:
251
251
$ref : " #/definitions/vendorExtension"
252
252
not :
253
253
type : object
254
+ minProperties : 1
254
255
additionalProperties : false
255
256
patternProperties :
256
257
" ^x- " :
257
258
$ref : " #/definitions/vendorExtension"
259
+ errorMessage :
260
+ minProperties : " should define at least one response"
261
+ not : " should define at least one response, in addition to any vendor extension (`x-*`) fields"
262
+ additionalProperties : " should only have three-digit status codes, `default`, and vendor extensions (`x-*`) as properties"
258
263
responseValue :
259
264
oneOf :
260
265
- $ref : " #/definitions/response"
Original file line number Diff line number Diff line change @@ -75,11 +75,6 @@ function jsonPointerStringToArray(str) {
75
75
. filter ( str => str . length > 0 )
76
76
}
77
77
78
- // For completeness, if we need to denormalize the key...
79
- // function JSONPointerToPath(str) {
80
- // return str.split('/').map(a => a.replace('~1', '/').replace('~0', '~'))
81
- // }
82
-
83
78
// Convert arrays into a string. Safely, by using the JSONPath spec
84
79
function normalizeKey ( key ) {
85
80
if ( ! Array . isArray ( key ) ) key = [ key ]
You can’t perform that action at this time.
0 commit comments