Skip to content

Commit 78a598e

Browse files
committedJun 24, 2024·
[Fix #359] Naming
Signed-off-by: Francisco Javier Tirado Sarti <ftirados@redhat.com>
1 parent a2f268b commit 78a598e

File tree

3 files changed

+52
-19
lines changed

3 files changed

+52
-19
lines changed
 

Diff for: ‎api/pom.xml

+1
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>

Diff for: ‎api/src/main/resources/schema/workflow.yaml

+50-18
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ properties:
5454
type: array
5555
items:
5656
type: object
57+
title: ExtensionItem
5758
minProperties: 1
5859
maxProperties: 1
5960
additionalProperties:
@@ -105,6 +106,7 @@ $defs:
105106
type: array
106107
items:
107108
type: object
109+
title: TaskItem
108110
minProperties: 1
109111
maxProperties: 1
110112
additionalProperties:
@@ -157,6 +159,7 @@ $defs:
157159
type: string
158160
const: asyncapi
159161
with:
162+
title: WithAsyncAPI
160163
type: object
161164
properties:
162165
document:
@@ -195,6 +198,7 @@ $defs:
195198
type: string
196199
const: grpc
197200
with:
201+
title: WithGRPC
198202
type: object
199203
properties:
200204
proto:
@@ -241,6 +245,7 @@ $defs:
241245
type: string
242246
const: http
243247
with:
248+
title: WithHTTP
244249
type: object
245250
properties:
246251
method:
@@ -274,6 +279,7 @@ $defs:
274279
type: string
275280
const: openapi
276281
with:
282+
title: WithOpenAPI
277283
type: object
278284
properties:
279285
document:
@@ -441,7 +447,8 @@ $defs:
441447
run:
442448
type: object
443449
oneOf:
444-
- properties:
450+
- title: RunContainer
451+
properties:
445452
container:
446453
type: object
447454
properties:
@@ -458,56 +465,66 @@ $defs:
458465
type: object
459466
description: The container's volume mappings, if any.
460467
environment:
468+
title: ContainerEnvironment
461469
type: object
462470
description: A key/value mapping of the environment variables, if any, to use when running the configured process.
463471
required: [ image ]
464472
required: [ container ]
465473
description: Enables the execution of external processes encapsulated within a containerized environment.
466-
- properties:
474+
- title: RunScript
475+
properties:
467476
script:
468477
type: object
469478
properties:
470479
language:
471480
type: string
472481
description: The language of the script to run.
473482
environment:
483+
title: ScriptEnvironment
474484
type: object
475485
additionalProperties: true
476486
description: A key/value mapping of the environment variables, if any, to use when running the configured process.
477487
oneOf:
478-
- properties:
488+
- title: ScriptInline
489+
properties:
479490
code:
480491
type: string
481492
required: [ code ]
482493
description: The script's code.
483-
- properties:
494+
- title: ScriptExternal
495+
properties:
484496
source:
485497
$ref: '#/$defs/externalResource'
486498
description: The script's resource.
487499
required: [ source ]
488500
required: [ language ]
489501
required: [ script ]
490502
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:
503+
- title: RunShell
504+
properties:
492505
shell:
493506
type: object
494507
properties:
495508
command:
496509
type: string
497510
description: The shell command to run.
498511
arguments:
512+
title: ShellArguments
499513
type: object
500514
additionalProperties: true
501515
description: A list of the arguments of the shell command to run.
502516
environment:
517+
title: ShellEnvironment
503518
type: object
504519
additionalProperties: true
505520
description: A key/value mapping of the environment variables, if any, to use when running the configured process.
506521
required: [ command ]
507522
required: [ shell ]
508523
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:
524+
- title: RunWokflow
525+
properties:
510526
workflow:
527+
title: RunWorkflowDescriptor
511528
type: object
512529
properties:
513530
namespace:
@@ -521,6 +538,7 @@ $defs:
521538
default: latest
522539
description: The version of the workflow to run. Defaults to latest
523540
input:
541+
title: WorkflowInput
524542
type: object
525543
additionalProperties: true
526544
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 +597,7 @@ $defs:
579597
type: object
580598
properties:
581599
errors:
600+
title: CatchErrors
582601
type: object
583602
as:
584603
type: string
@@ -615,7 +634,8 @@ $defs:
615634
authenticationPolicy:
616635
type: object
617636
oneOf:
618-
- properties:
637+
- title: BasicAuthenticationPolicy
638+
properties:
619639
basic:
620640
type: object
621641
properties:
@@ -628,7 +648,8 @@ $defs:
628648
required: [ username, password ]
629649
required: [ basic ]
630650
description: Use basic authentication.
631-
- properties:
651+
- title: BearerAuthenticationPolicy
652+
properties:
632653
bearer:
633654
type: object
634655
properties:
@@ -638,7 +659,8 @@ $defs:
638659
required: [ token ]
639660
required: [ bearer ]
640661
description: Use bearer authentication.
641-
- properties:
662+
- title: OAuth2AuthenticationPolicy
663+
properties:
642664
oauth2:
643665
type: object
644666
properties:
@@ -752,21 +774,24 @@ $defs:
752774
eventConsumptionStrategy:
753775
type: object
754776
oneOf:
755-
- properties:
777+
- title: AllEventConsumptionStrategy
778+
properties:
756779
all:
757780
type: array
758781
items:
759782
$ref: '#/$defs/eventFilter'
760783
description: A list containing all the events that must be consumed.
761784
required: [ all ]
762-
- properties:
785+
- title: AnyEventConsumptionStrategy
786+
properties:
763787
any:
764788
type: array
765789
items:
766790
$ref: '#/$defs/eventFilter'
767791
description: A list containing any of the events to consume.
768792
required: [ any ]
769-
- properties:
793+
- title: OneEventConsumptionStrategy
794+
properties:
770795
one:
771796
$ref: '#/$defs/eventFilter'
772797
description: The single event to consume.
@@ -775,6 +800,7 @@ $defs:
775800
type: object
776801
properties:
777802
with:
803+
title: WithEvent
778804
type: object
779805
minProperties: 1
780806
properties:
@@ -835,7 +861,8 @@ $defs:
835861
oneOf:
836862
- type: string
837863
format: uri
838-
- type: object
864+
- title: ExternalResourceURI
865+
type: object
839866
properties:
840867
uri:
841868
type: string
@@ -895,17 +922,20 @@ $defs:
895922
backoff:
896923
type: object
897924
oneOf:
898-
- properties:
925+
- title: ConstantBackoff
926+
properties:
899927
constant:
900928
type: object
901929
description: The definition of the constant backoff to use, if any.
902930
required: [ constant ]
903-
- properties:
931+
- title: ExponentialBackOff
932+
properties:
904933
exponential:
905934
type: object
906935
description: The definition of the exponential backoff to use, if any.
907936
required: [ exponential ]
908-
- properties:
937+
- title: LinearBackoff
938+
properties:
909939
linear:
910940
type: object
911941
description: The definition of the linear backoff to use, if any.
@@ -947,11 +977,13 @@ $defs:
947977
default: json
948978
description: The schema's format. Defaults to 'json'. The (optional) version of the format can be set using `{format}:{version}`.
949979
oneOf:
950-
- properties:
980+
- title: SchemaInline
981+
properties:
951982
document:
952983
description: The schema's inline definition.
953984
required: [ document ]
954-
- properties:
985+
- title: SchemaExternal
986+
properties:
955987
resource:
956988
$ref: '#/$defs/externalResource'
957989
description: The schema's external resource.

Diff for: ‎api/src/test/resources/features/composite.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ document:
44
name: do
55
do:
66
- compositeExample:
7-
do:
7+
do:
88
- setRed:
99
set:
1010
colors: ${ .colors + ["red"] }

0 commit comments

Comments
 (0)
Please sign in to comment.