Skip to content

Commit c058151

Browse files
fix: use uriTemplate type
Signed-off-by: Matthias <[email protected]>
1 parent 0dcd34f commit c058151

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

schema/workflow.yaml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,7 @@ $defs:
979979
description: Inline configuration of the OAuth2 authentication policy.
980980
properties:
981981
authority:
982-
type: string
983-
format: uri-template
982+
$ref: '#/$defs/uriTemplate'
984983
title: OAuth2AutenthicationDataAuthority
985984
description: The URI that references the OAuth2 authority to use.
986985
grant:
@@ -1114,11 +1113,10 @@ $defs:
11141113
description: A URI reference that identifies the error type.
11151114
oneOf:
11161115
- title: LiteralErrorType
1116+
$ref: '#/$defs/uriTemplate'
11171117
description: The literal error type.
1118-
type: string
1119-
format: uri-template
1120-
- $ref: '#/$defs/runtimeExpression'
1121-
title: ExpressionErrorType
1118+
- title: ExpressionErrorType
1119+
$ref: '#/$defs/runtimeExpression'
11221120
description: An expression based error type.
11231121
status:
11241122
type: integer
@@ -1160,9 +1158,7 @@ $defs:
11601158
description: Represents an endpoint.
11611159
oneOf:
11621160
- $ref: '#/$defs/runtimeExpression'
1163-
- title: LiteralEndpoint
1164-
type: string
1165-
format: uri-template
1161+
- $ref: '#/$defs/uriTemplate'
11661162
- title: EndpointConfiguration
11671163
type: object
11681164
unevaluatedProperties: false
@@ -1173,10 +1169,9 @@ $defs:
11731169
oneOf:
11741170
- title: LiteralEndpointURI
11751171
description: The literal endpoint's URI.
1176-
type: string
1177-
format: uri-template
1178-
- $ref: '#/$defs/runtimeExpression'
1179-
title: ExpressionEndpointURI
1172+
$ref: '#/$defs/uriTemplate'
1173+
- title: ExpressionEndpointURI
1174+
$ref: '#/$defs/runtimeExpression'
11801175
description: An expression based endpoint's URI.
11811176
authentication:
11821177
$ref: '#/$defs/referenceableAuthenticationPolicy'
@@ -1196,9 +1191,7 @@ $defs:
11961191
title: EventSource
11971192
description: Identifies the context in which an event happened.
11981193
oneOf:
1199-
- title: LiteralSource
1200-
type: string
1201-
format: uri-template
1194+
- $ref: '#/$defs/uriTemplate'
12021195
- $ref: '#/$defs/runtimeExpression'
12031196
type:
12041197
type: string
@@ -1225,11 +1218,10 @@ $defs:
12251218
description: The schema describing the event format.
12261219
oneOf:
12271220
- title: LiteralDataSchema
1221+
$ref: '#/$defs/uriTemplate'
12281222
description: The literal event data schema.
1229-
type: string
1230-
format: uri-template
1231-
- $ref: '#/$defs/runtimeExpression'
1232-
title: ExpressionDataSchema
1223+
- title: ExpressionDataSchema
1224+
$ref: '#/$defs/runtimeExpression'
12331225
description: An expression based event data schema.
12341226
additionalProperties: true
12351227
eventConsumptionStrategy:

0 commit comments

Comments
 (0)