Skip to content

Commit a1c6453

Browse files
committed
Resolved comments from @cdavernas
Signed-off-by: Jean-Baptiste Bianchi <jb.bianchi@neuroglia.io>
1 parent f30d6b5 commit a1c6453

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

schema/workflow.yaml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ $defs:
204204
const: asyncapi
205205
with:
206206
type: object
207-
title: WithAsyncAPI
207+
title: AsyncApiArguments
208208
description: The Async API call arguments.
209209
properties:
210210
document:
@@ -249,7 +249,7 @@ $defs:
249249
const: grpc
250250
with:
251251
type: object
252-
title: WithGRPC
252+
title: GRPCArguments
253253
description: The GRPC call arguments.
254254
properties:
255255
proto:
@@ -304,7 +304,7 @@ $defs:
304304
const: http
305305
with:
306306
type: object
307-
title: WithHTTP
307+
title: HTTPArguments
308308
description: The HTTP call arguments.
309309
properties:
310310
method:
@@ -352,7 +352,7 @@ $defs:
352352
const: openapi
353353
with:
354354
type: object
355-
title: WithOpenAPI
355+
title: OpenAPIArguments
356356
description: The OpenAPI call arguments.
357357
properties:
358358
document:
@@ -393,9 +393,9 @@ $defs:
393393
description: The name of the function to call.
394394
with:
395395
type: object
396-
additionalProperties: true
397-
title: CallFunctionWith
396+
title: FunctionArguments
398397
description: A name/value mapping of the parameters, if any, to call the function with.
398+
additionalProperties: true
399399
forkTask:
400400
type: object
401401
$ref: '#/$defs/taskBase'
@@ -599,20 +599,21 @@ $defs:
599599
description: A key/value mapping of the environment variables, if any, to use when running the configured script process.
600600
additionalProperties: true
601601
oneOf:
602-
- title: ScriptInline
602+
- title: InlineScript
603603
type: object
604604
description: The script's code.
605605
properties:
606606
code:
607607
type: string
608+
title: InlineScriptCode
608609
required: [ code ]
609-
- title: ScriptExternal
610+
- title: ExternalScript
610611
type: object
611612
description: The script's resource.
612613
properties:
613614
source:
614615
$ref: '#/$defs/externalResource'
615-
title: ScriptExternalSource
616+
title: ExternalScriptResource
616617
required: [ source ]
617618
required: [ language ]
618619
required: [ script ]
@@ -646,26 +647,26 @@ $defs:
646647
properties:
647648
workflow:
648649
type: object
649-
title: RunWorkflowDescriptor
650+
title: SubflowConfiguration
650651
description: The configuration of the workflow to run.
651652
unevaluatedProperties: false
652653
properties:
653654
namespace:
654655
type: string
655-
title: RunWorkflowNamespace
656+
title: SubflowNamespace
656657
description: The namespace the workflow to run belongs to.
657658
name:
658659
type: string
659-
title: RunWorkflowName
660+
title: SubflowName
660661
description: The name of the workflow to run.
661662
version:
662663
type: string
663664
default: latest
664-
title: RunWorkflowVersion
665+
title: SubflowVersion
665666
description: The version of the workflow to run. Defaults to latest.
666667
input:
667668
type: object
668-
title: RunWorkflowInput
669+
title: SubflowInput
669670
description: The data, if any, to pass as input to the workflow to execute. The value should be validated against the target workflow's input schema, if specified.
670671
additionalProperties: true
671672
required: [ namespace, name, version ]
@@ -711,11 +712,11 @@ $defs:
711712
properties:
712713
when:
713714
type: string
714-
title: SwitchCaseWhen
715+
title: SwitchCaseCondition
715716
description: A runtime expression used to determine whether or not the case matches.
716717
then:
717718
$ref: '#/$defs/flowDirective'
718-
title: SwitchCaseThen
719+
title: SwitchCaseOutcome
719720
description: The flow directive to execute when the case matches.
720721
tryTask:
721722
type: object
@@ -856,7 +857,7 @@ $defs:
856857
description: Secret based configuration of the bearer authentication policy.
857858
required: [ bearer ]
858859
- title: OAuth2AuthenticationPolicy
859-
description: Use OAUTH2 authentication.
860+
description: Use OAuth2 authentication.
860861
properties:
861862
oauth2:
862863
type: object
@@ -920,22 +921,22 @@ $defs:
920921
title: OAuth2AutenthicationDataActor
921922
description: The security token that represents the identity of the acting party.
922923
- $ref: '#/$defs/secretBasedAuthenticationPolicy'
923-
title: OAuth2AuthenticationPolicyOauth2Secret
924+
title: OAuth2AuthenticationPolicySecret
924925
description: Secret based configuration of the OAuth2 authentication policy.
925926
required: [ oauth2 ]
926927
oauth2Token:
927928
type: object
928-
title: Oauth2TokenDefinition
929+
title: OAuth2TokenDefinition
929930
description: Represents an OAuth2 token.
930931
unevaluatedProperties: false
931932
properties:
932933
token:
933934
type: string
934-
title: Oauth2Token
935+
title: OAuth2Token
935936
description: The security token to use.
936937
type:
937938
type: string
938-
title: Oauth2TokenType
939+
title: OAuth2TokenType
939940
description: The type of the security token to use.
940941
required: [ token, type ]
941942
duration:
@@ -1139,7 +1140,7 @@ $defs:
11391140
extension:
11401141
type: object
11411142
title: Extension
1142-
description: The definition of a an extension.
1143+
description: The definition of an extension.
11431144
unevaluatedProperties: false
11441145
properties:
11451146
extend:
@@ -1149,15 +1150,15 @@ $defs:
11491150
description: The type of task to extend.
11501151
when:
11511152
type: string
1152-
title: ExtensionWhen
1153+
title: ExtensionCondition
11531154
description: A runtime expression, if any, used to determine whether or not the extension should apply in the specified context.
11541155
before:
11551156
$ref: '#/$defs/taskList'
1156-
title: ExtensionBefore
1157+
title: ExtensionDoBefore
11571158
description: The task(s) to execute before the extended task, if any.
11581159
after:
11591160
$ref: '#/$defs/taskList'
1160-
title: ExtensionAfter
1161+
title: ExtensionDoAfter
11611162
description: The task(s) to execute after the extended task, if any.
11621163
required: [ extend ]
11631164
externalResource:

0 commit comments

Comments
 (0)