Skip to content

Commit 61fee04

Browse files
committed
fix: excluded operations filter for additional operations
Signed-off-by: Vincent Biret <[email protected]>
1 parent 6ed7fe8 commit 61fee04

File tree

1 file changed

+12
-42
lines changed

1 file changed

+12
-42
lines changed

src/schemas/validation/schema.yaml

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -234,48 +234,18 @@ $defs:
234234
type: object
235235
additionalProperties:
236236
$ref: '#/$defs/operation'
237-
not:
238-
anyOf:
239-
- properties:
240-
get:
241-
$ref: '#/$defs/operation'
242-
required:
243-
- get
244-
- properties:
245-
put:
246-
$ref: '#/$defs/operation'
247-
required:
248-
- put
249-
- properties:
250-
post:
251-
$ref: '#/$defs/operation'
252-
required:
253-
- post
254-
- properties:
255-
delete:
256-
$ref: '#/$defs/operation'
257-
required:
258-
- delete
259-
- properties:
260-
options:
261-
$ref: '#/$defs/operation'
262-
required:
263-
- options
264-
- properties:
265-
head:
266-
$ref: '#/$defs/operation'
267-
required:
268-
- head
269-
- properties:
270-
patch:
271-
$ref: '#/$defs/operation'
272-
required:
273-
- patch
274-
- properties:
275-
trace:
276-
$ref: '#/$defs/operation'
277-
required:
278-
- trace
237+
propertyNames:
238+
not:
239+
enum:
240+
- GET
241+
- PUT
242+
- POST
243+
- DELETE
244+
- OPTIONS
245+
- HEAD
246+
- PATCH
247+
- TRACE
248+
- QUERY
279249
get:
280250
$ref: '#/$defs/operation'
281251
put:

0 commit comments

Comments
 (0)