Skip to content

Commit 692b413

Browse files
committed
fix: schema indentation and adds required keyword
Signed-off-by: Vincent Biret <[email protected]>
1 parent b12f34b commit 692b413

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

src/schemas/validation/schema.yaml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,28 +238,44 @@ $defs:
238238
anyOf:
239239
- properties:
240240
- get:
241-
$ref: '#/$defs/operation'
241+
$ref: '#/$defs/operation'
242+
required:
243+
- get
242244
- properties:
243245
- put:
244-
$ref: '#/$defs/operation'
246+
$ref: '#/$defs/operation'
247+
required:
248+
- put
245249
- properties:
246250
- post:
247-
$ref: '#/$defs/operation'
251+
$ref: '#/$defs/operation'
252+
required:
253+
- post
248254
- properties:
249255
- delete:
250-
$ref: '#/$defs/operation'
256+
$ref: '#/$defs/operation'
257+
required:
258+
- delete
251259
- properties:
252260
- options:
253-
$ref: '#/$defs/operation'
261+
$ref: '#/$defs/operation'
262+
required:
263+
- options
254264
- properties:
255265
- head:
256-
$ref: '#/$defs/operation'
266+
$ref: '#/$defs/operation'
267+
required:
268+
- head
257269
- properties:
258270
- patch:
259-
$ref: '#/$defs/operation'
271+
$ref: '#/$defs/operation'
272+
required:
273+
- patch
260274
- properties:
261275
- trace:
262-
$ref: '#/$defs/operation'
276+
$ref: '#/$defs/operation'
277+
required:
278+
- trace
263279
get:
264280
$ref: '#/$defs/operation'
265281
put:

0 commit comments

Comments
 (0)