Skip to content

Commit dbf11fe

Browse files
committed
[Fix #359] Naming
Signed-off-by: Francisco Javier Tirado Sarti <[email protected]>
1 parent a2f268b commit dbf11fe

File tree

3 files changed

+51
-19
lines changed

3 files changed

+51
-19
lines changed

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>

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

+49-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,55 +465,64 @@ $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:
511527
type: object
512528
properties:
@@ -521,6 +537,7 @@ $defs:
521537
default: latest
522538
description: The version of the workflow to run. Defaults to latest
523539
input:
540+
title: WorkflowInput
524541
type: object
525542
additionalProperties: true
526543
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 +596,7 @@ $defs:
579596
type: object
580597
properties:
581598
errors:
599+
title: CatchErrors
582600
type: object
583601
as:
584602
type: string
@@ -615,7 +633,8 @@ $defs:
615633
authenticationPolicy:
616634
type: object
617635
oneOf:
618-
- properties:
636+
- title: BasicAuthenticationPolicy
637+
properties:
619638
basic:
620639
type: object
621640
properties:
@@ -628,7 +647,8 @@ $defs:
628647
required: [ username, password ]
629648
required: [ basic ]
630649
description: Use basic authentication.
631-
- properties:
650+
- title: BearerAuthenticationPolicy
651+
properties:
632652
bearer:
633653
type: object
634654
properties:
@@ -638,7 +658,8 @@ $defs:
638658
required: [ token ]
639659
required: [ bearer ]
640660
description: Use bearer authentication.
641-
- properties:
661+
- title: OAuth2AuthenticationPolicy
662+
properties:
642663
oauth2:
643664
type: object
644665
properties:
@@ -752,21 +773,24 @@ $defs:
752773
eventConsumptionStrategy:
753774
type: object
754775
oneOf:
755-
- properties:
776+
- title: AllEventConsumptionStrategy
777+
properties:
756778
all:
757779
type: array
758780
items:
759781
$ref: '#/$defs/eventFilter'
760782
description: A list containing all the events that must be consumed.
761783
required: [ all ]
762-
- properties:
784+
- title: AnyEventConsumptionStrategy
785+
properties:
763786
any:
764787
type: array
765788
items:
766789
$ref: '#/$defs/eventFilter'
767790
description: A list containing any of the events to consume.
768791
required: [ any ]
769-
- properties:
792+
- title: OneEventConsumptionStrategy
793+
properties:
770794
one:
771795
$ref: '#/$defs/eventFilter'
772796
description: The single event to consume.
@@ -775,6 +799,7 @@ $defs:
775799
type: object
776800
properties:
777801
with:
802+
title: WithEvent
778803
type: object
779804
minProperties: 1
780805
properties:
@@ -835,7 +860,8 @@ $defs:
835860
oneOf:
836861
- type: string
837862
format: uri
838-
- type: object
863+
- title: ExternalResourceURI
864+
type: object
839865
properties:
840866
uri:
841867
type: string
@@ -895,17 +921,20 @@ $defs:
895921
backoff:
896922
type: object
897923
oneOf:
898-
- properties:
924+
- title: ConstantBackoff
925+
properties:
899926
constant:
900927
type: object
901928
description: The definition of the constant backoff to use, if any.
902929
required: [ constant ]
903-
- properties:
930+
- title: ExponentialBackOff
931+
properties:
904932
exponential:
905933
type: object
906934
description: The definition of the exponential backoff to use, if any.
907935
required: [ exponential ]
908-
- properties:
936+
- title: LinearBackoff
937+
properties:
909938
linear:
910939
type: object
911940
description: The definition of the linear backoff to use, if any.
@@ -947,11 +976,13 @@ $defs:
947976
default: json
948977
description: The schema's format. Defaults to 'json'. The (optional) version of the format can be set using `{format}:{version}`.
949978
oneOf:
950-
- properties:
979+
- title: SchemaInline
980+
properties:
951981
document:
952982
description: The schema's inline definition.
953983
required: [ document ]
954-
- properties:
984+
- title: SchemaExternal
985+
properties:
955986
resource:
956987
$ref: '#/$defs/externalResource'
957988
description: The schema's external resource.

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)