Skip to content

Commit 4f21c9d

Browse files
fix: allow references to authentications in use
Signed-off-by: Matthias Pichler <[email protected]>
1 parent 226cf99 commit 4f21c9d

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

schema/workflow.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ $defs:
159159
type: object
160160
description: The payload to call the AsyncAPI operation with, if any.
161161
authentication:
162-
$ref: '#/$defs/authenticationPolicy'
163162
description: The authentication policy, if any, to use when calling the AsyncAPI operation.
163+
oneOf:
164+
- $ref: '#/$defs/authenticationPolicy'
165+
- type: string
164166
required: [ document, operationRef ]
165167
description: Defines the AsyncAPI call to perform.
166168
required: [ call, with ]
@@ -190,8 +192,10 @@ $defs:
190192
max: 65535
191193
description: The port number of the GRPC service to call.
192194
authentication:
193-
$ref: '#/$defs/authenticationPolicy'
194195
description: The endpoint's authentication policy, if any.
196+
oneOf:
197+
- $ref: '#/$defs/authenticationPolicy'
198+
- type: string
195199
required: [ name, host ]
196200
method:
197201
type: string
@@ -246,8 +250,10 @@ $defs:
246250
additionalProperties: true
247251
description: A name/value mapping of the parameters of the OpenAPI operation to call.
248252
authentication:
249-
$ref: '#/$defs/authenticationPolicy'
250253
description: The authentication policy, if any, to use when calling the OpenAPI operation.
254+
oneOf:
255+
- $ref: '#/$defs/authenticationPolicy'
256+
- type: string
251257
output:
252258
type: string
253259
enum: [ raw, content, response ]
@@ -674,8 +680,10 @@ $defs:
674680
format: uri-template
675681
description: The endpoint's URI.
676682
authentication:
677-
$ref: '#/$defs/authenticationPolicy'
678683
description: The authentication policy to use.
684+
oneOf:
685+
- $ref: '#/$defs/authenticationPolicy'
686+
- type: string
679687
required: [ uri ]
680688
eventConsumptionStrategy:
681689
type: object
@@ -770,8 +778,10 @@ $defs:
770778
format: uri
771779
description: The endpoint's URI.
772780
authentication:
773-
$ref: '#/$defs/authenticationPolicy'
774781
description: The authentication policy to use.
782+
oneOf:
783+
- $ref: '#/$defs/authenticationPolicy'
784+
- type: string
775785
name:
776786
type: string
777787
description: The external resource's name, if any.

0 commit comments

Comments
 (0)