Skip to content

Commit ec487e2

Browse files
feat: allow runtime expressions
Signed-off-by: Matthias Pichler <[email protected]>
1 parent 80280f3 commit ec487e2

File tree

1 file changed

+38
-13
lines changed

1 file changed

+38
-13
lines changed

schema/workflow.yaml

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ $defs:
253253
description: The HTTP endpoint to send the request to.
254254
oneOf:
255255
- $ref: '#/$defs/endpoint'
256-
- type: string
256+
- $ref: '#/$defs/runtimeExpression'
257+
- title: LiteralEndpoint
258+
type: string
257259
format: uri-template
258260
headers:
259261
type: object
@@ -361,23 +363,32 @@ $defs:
361363
type: string
362364
description: The event's unique identifier
363365
source:
364-
type: string
365-
format: uri
366366
description: Identifies the context in which an event happened
367+
oneOf:
368+
- title: LiteralSource
369+
type: string
370+
format: uri-template
371+
- $ref: '#/$defs/runtimeExpression'
367372
type:
368373
type: string
369374
description: This attribute contains a value describing the type of event related to the originating occurrence.
370375
time:
371-
type: string
372-
format: date-time
376+
oneOf:
377+
- title: LiteralTime
378+
type: string
379+
format: date-time
380+
- $ref: '#/$defs/runtimeExpression'
373381
subject:
374382
type: string
375383
datacontenttype:
376384
type: string
377385
description: Content type of data value. This attribute enables data to carry any type of content, whereby format and encoding might differ from that of the chosen event format.
378386
dataschema:
379-
type: string
380-
format: uri
387+
oneOf:
388+
- title: LiteralDataSchema
389+
type: string
390+
format: uri-template
391+
- $ref: '#/$defs/runtimeExpression'
381392
required: [ source, type ]
382393
additionalProperties: true
383394
required: [ event ]
@@ -773,16 +784,22 @@ $defs:
773784
type: object
774785
properties:
775786
type:
776-
type: string
777-
format: uri
778787
description: A URI reference that identifies the error type.
788+
oneOf:
789+
- title: LiteralErrorType
790+
type: string
791+
format: uri-template
792+
- $ref: '#/$defs/runtimeExpression'
779793
status:
780794
type: integer
781795
description: The status code generated by the origin for this occurrence of the error.
782796
instance:
783-
type: string
784-
format: json-pointer
785797
description: A JSON Pointer used to reference the component the error originates from.
798+
oneOf:
799+
- title: LiteralErrorInstance
800+
type: string
801+
format: json-pointer
802+
- $ref: '#/$defs/runtimeExpression'
786803
title:
787804
type: string
788805
description: A short, human-readable summary of the error.
@@ -794,9 +811,12 @@ $defs:
794811
type: object
795812
properties:
796813
uri:
797-
type: string
798-
format: uri-template
799814
description: The endpoint's URI.
815+
oneOf:
816+
- title: LiteralEndpointURI
817+
type: string
818+
format: uri-template
819+
- $ref: '#/$defs/runtimeExpression'
800820
authentication:
801821
$ref: '#/$defs/referenceableAuthenticationPolicy'
802822
description: The authentication policy to use.
@@ -1031,3 +1051,8 @@ $defs:
10311051
description: The duration after which to timeout.
10321052
required: [ after ]
10331053
description: The definition of a timeout.
1054+
runtimeExpression:
1055+
title: RuntimeExpression
1056+
type: string
1057+
description: A runtime expression
1058+
pattern: "^\\s*\\$\\{.+\\}\\s*$"

0 commit comments

Comments
 (0)