Skip to content

Commit 461b840

Browse files
committed
refactor: make action mandatory in asyncapi set for improved validation
1 parent 2fe1a4d commit 461b840

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/schemas/validation/schema.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ $defs:
274274
- array
275275
action:
276276
description: Specifies the intended operation on the async channel, indicating whether the action is sending data to the channel or receiving data from the channel
277-
required: true
278277
enum:
279278
- send
280279
- receive
@@ -285,6 +284,8 @@ $defs:
285284
minItems: 0
286285
items:
287286
$ref: '#/$defs/criterion-object'
287+
required:
288+
- action
288289
- if:
289290
oneOf:
290291
- required:
@@ -312,10 +313,8 @@ $defs:
312313
- oneOf:
313314
- required:
314315
- operationId
315-
- action
316316
- required:
317317
- channelPath
318-
- action
319318
$ref: '#/$defs/specification-extensions'
320319
unevaluatedProperties: false
321320
workflow-step-object:

0 commit comments

Comments
 (0)