Skip to content

Commit 672794a

Browse files
fix: allow references to authentications in use
Signed-off-by: Matthias Pichler <m.pichler@warrify.com>
1 parent 58fb86c commit 672794a

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
@@ -156,8 +156,10 @@ $defs:
156156
type: object
157157
description: The payload to call the AsyncAPI operation with, if any.
158158
authentication:
159-
$ref: '#/$defs/authenticationPolicy'
160159
description: The authentication policy, if any, to use when calling the AsyncAPI operation.
160+
oneOf:
161+
- $ref: '#/$defs/authenticationPolicy'
162+
- type: string
161163
required: [ document, operationRef ]
162164
description: Defines the AsyncAPI call to perform.
163165
required: [ call, with ]
@@ -187,8 +189,10 @@ $defs:
187189
max: 65535
188190
description: The port number of the GRPC service to call.
189191
authentication:
190-
$ref: '#/$defs/authenticationPolicy'
191192
description: The endpoint's authentication policy, if any.
193+
oneOf:
194+
- $ref: '#/$defs/authenticationPolicy'
195+
- type: string
192196
required: [ name, host ]
193197
method:
194198
type: string
@@ -243,8 +247,10 @@ $defs:
243247
additionalProperties: true
244248
description: A name/value mapping of the parameters of the OpenAPI operation to call.
245249
authentication:
246-
$ref: '#/$defs/authenticationPolicy'
247250
description: The authentication policy, if any, to use when calling the OpenAPI operation.
251+
oneOf:
252+
- $ref: '#/$defs/authenticationPolicy'
253+
- type: string
248254
output:
249255
type: string
250256
enum: [ raw, content, response ]
@@ -668,8 +674,10 @@ $defs:
668674
format: uri
669675
description: The endpoint's URI.
670676
authentication:
671-
$ref: '#/$defs/authenticationPolicy'
672677
description: The authentication policy to use.
678+
oneOf:
679+
- $ref: '#/$defs/authenticationPolicy'
680+
- type: string
673681
required: [ uri ]
674682
eventConsumptionStrategy:
675683
type: object
@@ -761,8 +769,10 @@ $defs:
761769
format: uri
762770
description: The endpoint's URI.
763771
authentication:
764-
$ref: '#/$defs/authenticationPolicy'
765772
description: The authentication policy to use.
773+
oneOf:
774+
- $ref: '#/$defs/authenticationPolicy'
775+
- type: string
766776
name:
767777
type: string
768778
description: The external resource's name, if any.

0 commit comments

Comments
 (0)