Skip to content

Commit 7f9f93d

Browse files
committed
Signed-off-by: Francisco Javier Tirado Sarti <ftirados@redhat.com>
1 parent a2f268b commit 7f9f93d

File tree

2 files changed

+48
-18
lines changed

2 files changed

+48
-18
lines changed

api/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<includeHashcodeAndEquals>false</includeHashcodeAndEquals>
9191
<includeConstructors>true</includeConstructors>
9292
<constructorsRequiredPropertiesOnly>true</constructorsRequiredPropertiesOnly>
93+
<useTitleAsClassname>true</useTitleAsClassname>
9394
<serializable>true</serializable>
9495
<targetVersion>${java.version}</targetVersion>
9596
<usePrimitives>true</usePrimitives>

api/src/main/resources/schema/workflow.yaml

Lines changed: 47 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ $defs:
157157
type: string
158158
const: asyncapi
159159
with:
160+
title: WithAsyncAPI
160161
type: object
161162
properties:
162163
document:
@@ -195,6 +196,7 @@ $defs:
195196
type: string
196197
const: grpc
197198
with:
199+
title: WithGRPC
198200
type: object
199201
properties:
200202
proto:
@@ -241,6 +243,7 @@ $defs:
241243
type: string
242244
const: http
243245
with:
246+
title: WithHTTP
244247
type: object
245248
properties:
246249
method:
@@ -274,6 +277,7 @@ $defs:
274277
type: string
275278
const: openapi
276279
with:
280+
title: WithOpenAPI
277281
type: object
278282
properties:
279283
document:
@@ -441,7 +445,8 @@ $defs:
441445
run:
442446
type: object
443447
oneOf:
444-
- properties:
448+
- title: RunContainer
449+
properties:
445450
container:
446451
type: object
447452
properties:
@@ -458,55 +463,64 @@ $defs:
458463
type: object
459464
description: The container's volume mappings, if any.
460465
environment:
466+
title: ContainerEnvironment
461467
type: object
462468
description: A key/value mapping of the environment variables, if any, to use when running the configured process.
463469
required: [ image ]
464470
required: [ container ]
465471
description: Enables the execution of external processes encapsulated within a containerized environment.
466-
- properties:
472+
- title: RunScript
473+
properties:
467474
script:
468475
type: object
469476
properties:
470477
language:
471478
type: string
472479
description: The language of the script to run.
473480
environment:
481+
title: ScriptEnvironment
474482
type: object
475483
additionalProperties: true
476484
description: A key/value mapping of the environment variables, if any, to use when running the configured process.
477485
oneOf:
478-
- properties:
486+
- title: ScriptInline
487+
properties:
479488
code:
480489
type: string
481490
required: [ code ]
482491
description: The script's code.
483-
- properties:
492+
- title: ScriptExternal
493+
properties:
484494
source:
485495
$ref: '#/$defs/externalResource'
486496
description: The script's resource.
487497
required: [ source ]
488498
required: [ language ]
489499
required: [ script ]
490500
description: Enables the execution of custom scripts or code within a workflow, empowering workflows to perform specialized logic, data processing, or integration tasks by executing user-defined scripts written in various programming languages.
491-
- properties:
501+
- title: RunShell
502+
properties:
492503
shell:
493504
type: object
494505
properties:
495506
command:
496507
type: string
497508
description: The shell command to run.
498509
arguments:
510+
title: ScriptArguments
499511
type: object
500512
additionalProperties: true
501513
description: A list of the arguments of the shell command to run.
502514
environment:
515+
title: ShellEnvironment
503516
type: object
504517
additionalProperties: true
505518
description: A key/value mapping of the environment variables, if any, to use when running the configured process.
506519
required: [ command ]
507520
required: [ shell ]
508521
description: Enables the execution of shell commands within a workflow, enabling workflows to interact with the underlying operating system and perform system-level operations, such as file manipulation, environment configuration, or system administration tasks.
509-
- properties:
522+
- title: RunWokflow
523+
properties:
510524
workflow:
511525
type: object
512526
properties:
@@ -521,6 +535,7 @@ $defs:
521535
default: latest
522536
description: The version of the workflow to run. Defaults to latest
523537
input:
538+
title: WorkflowInput
524539
type: object
525540
additionalProperties: true
526541
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.
@@ -579,6 +594,7 @@ $defs:
579594
type: object
580595
properties:
581596
errors:
597+
title: CatchErrors
582598
type: object
583599
as:
584600
type: string
@@ -615,7 +631,8 @@ $defs:
615631
authenticationPolicy:
616632
type: object
617633
oneOf:
618-
- properties:
634+
- title: BasicAuthenticationPolicy
635+
properties:
619636
basic:
620637
type: object
621638
properties:
@@ -628,7 +645,8 @@ $defs:
628645
required: [ username, password ]
629646
required: [ basic ]
630647
description: Use basic authentication.
631-
- properties:
648+
- title: BearerAuthenticationPolicy
649+
properties:
632650
bearer:
633651
type: object
634652
properties:
@@ -638,7 +656,8 @@ $defs:
638656
required: [ token ]
639657
required: [ bearer ]
640658
description: Use bearer authentication.
641-
- properties:
659+
- title: OAuth2AuthenticationPolicy
660+
properties:
642661
oauth2:
643662
type: object
644663
properties:
@@ -752,21 +771,24 @@ $defs:
752771
eventConsumptionStrategy:
753772
type: object
754773
oneOf:
755-
- properties:
774+
- title: AllEventConsumptionStrategy
775+
properties:
756776
all:
757777
type: array
758778
items:
759779
$ref: '#/$defs/eventFilter'
760780
description: A list containing all the events that must be consumed.
761781
required: [ all ]
762-
- properties:
782+
- title: AnyEventConsumptionStrategy
783+
properties:
763784
any:
764785
type: array
765786
items:
766787
$ref: '#/$defs/eventFilter'
767788
description: A list containing any of the events to consume.
768789
required: [ any ]
769-
- properties:
790+
- title: OneEventConsumptionStrategy
791+
properties:
770792
one:
771793
$ref: '#/$defs/eventFilter'
772794
description: The single event to consume.
@@ -775,6 +797,7 @@ $defs:
775797
type: object
776798
properties:
777799
with:
800+
title: WithEvent
778801
type: object
779802
minProperties: 1
780803
properties:
@@ -835,7 +858,8 @@ $defs:
835858
oneOf:
836859
- type: string
837860
format: uri
838-
- type: object
861+
- title: ExternalResourceURI
862+
type: object
839863
properties:
840864
uri:
841865
type: string
@@ -895,17 +919,20 @@ $defs:
895919
backoff:
896920
type: object
897921
oneOf:
898-
- properties:
922+
- title: constantBackoff
923+
properties:
899924
constant:
900925
type: object
901926
description: The definition of the constant backoff to use, if any.
902927
required: [ constant ]
903-
- properties:
928+
- title: exponentialBackOff
929+
properties:
904930
exponential:
905931
type: object
906932
description: The definition of the exponential backoff to use, if any.
907933
required: [ exponential ]
908-
- properties:
934+
- title: linealBackoff
935+
properties:
909936
linear:
910937
type: object
911938
description: The definition of the linear backoff to use, if any.
@@ -947,11 +974,13 @@ $defs:
947974
default: json
948975
description: The schema's format. Defaults to 'json'. The (optional) version of the format can be set using `{format}:{version}`.
949976
oneOf:
950-
- properties:
977+
- title: SchemaInline
978+
properties:
951979
document:
952980
description: The schema's inline definition.
953981
required: [ document ]
954-
- properties:
982+
- title: SchemaExternal
983+
properties:
955984
resource:
956985
$ref: '#/$defs/externalResource'
957986
description: The schema's external resource.

0 commit comments

Comments
 (0)