Skip to content

Commit b12f34b

Browse files
committed
fix: schema definition for outlawed properties
Signed-off-by: Vincent Biret <[email protected]>
1 parent 524cc6f commit b12f34b

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

src/schemas/validation/schema.yaml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -235,23 +235,31 @@ $defs:
235235
additionalProperties:
236236
$ref: '#/$defs/operation'
237237
not:
238-
required:
239-
- get:
240-
$ref: '#/$defs/operation'
241-
- put:
242-
$ref: '#/$defs/operation'
243-
- post:
244-
$ref: '#/$defs/operation'
245-
- delete:
246-
$ref: '#/$defs/operation'
247-
- options:
248-
$ref: '#/$defs/operation'
249-
- head:
250-
$ref: '#/$defs/operation'
251-
- patch:
252-
$ref: '#/$defs/operation'
253-
- trace:
254-
$ref: '#/$defs/operation'
238+
anyOf:
239+
- properties:
240+
- get:
241+
$ref: '#/$defs/operation'
242+
- properties:
243+
- put:
244+
$ref: '#/$defs/operation'
245+
- properties:
246+
- post:
247+
$ref: '#/$defs/operation'
248+
- properties:
249+
- delete:
250+
$ref: '#/$defs/operation'
251+
- properties:
252+
- options:
253+
$ref: '#/$defs/operation'
254+
- properties:
255+
- head:
256+
$ref: '#/$defs/operation'
257+
- properties:
258+
- patch:
259+
$ref: '#/$defs/operation'
260+
- properties:
261+
- trace:
262+
$ref: '#/$defs/operation'
255263
get:
256264
$ref: '#/$defs/operation'
257265
put:

0 commit comments

Comments
 (0)