Skip to content

Commit 5dd02fc

Browse files
committed
Added workflow param when validating
Allows to validate an item against the workflow, for instance a transition, the use of a a function, ... Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
1 parent f107cb6 commit 5dd02fc

File tree

155 files changed

+323
-314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+323
-314
lines changed

src/lib/generated/classes/all-event-consumption-strategy-configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export class AllEventConsumptionStrategyConfiguration extends ArrayHydrator<Spec
5252
* Validates the current instance of the AllEventConsumptionStrategyConfiguration.
5353
* Throws if invalid.
5454
*/
55-
validate() {
55+
validate(workflow?: Partial<Specification.Workflow>) {
5656
const copy = new AllEventConsumptionStrategyConfiguration(this);
57-
validate('AllEventConsumptionStrategyConfiguration', copy);
57+
validate('AllEventConsumptionStrategyConfiguration', copy, workflow);
5858
}
5959

6060
/**

src/lib/generated/classes/all-event-consumption-strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export class AllEventConsumptionStrategy extends ObjectHydrator<Specification.Al
6464
* Validates the current instance of the AllEventConsumptionStrategy.
6565
* Throws if invalid.
6666
*/
67-
validate() {
67+
validate(workflow?: Partial<Specification.Workflow>) {
6868
const copy = new AllEventConsumptionStrategy(this as any) as AllEventConsumptionStrategyIntersection;
69-
validate('AllEventConsumptionStrategy', copy);
69+
validate('AllEventConsumptionStrategy', copy, workflow);
7070
}
7171

7272
/**

src/lib/generated/classes/any-event-consumption-strategy-configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export class AnyEventConsumptionStrategyConfiguration extends ArrayHydrator<Spec
5252
* Validates the current instance of the AnyEventConsumptionStrategyConfiguration.
5353
* Throws if invalid.
5454
*/
55-
validate() {
55+
validate(workflow?: Partial<Specification.Workflow>) {
5656
const copy = new AnyEventConsumptionStrategyConfiguration(this);
57-
validate('AnyEventConsumptionStrategyConfiguration', copy);
57+
validate('AnyEventConsumptionStrategyConfiguration', copy, workflow);
5858
}
5959

6060
/**

src/lib/generated/classes/any-event-consumption-strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export class AnyEventConsumptionStrategy extends ObjectHydrator<Specification.An
6464
* Validates the current instance of the AnyEventConsumptionStrategy.
6565
* Throws if invalid.
6666
*/
67-
validate() {
67+
validate(workflow?: Partial<Specification.Workflow>) {
6868
const copy = new AnyEventConsumptionStrategy(this as any) as AnyEventConsumptionStrategyIntersection;
69-
validate('AnyEventConsumptionStrategy', copy);
69+
validate('AnyEventConsumptionStrategy', copy, workflow);
7070
}
7171

7272
/**

src/lib/generated/classes/async-api-arguments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export class AsyncApiArguments extends ObjectHydrator<Specification.AsyncApiArgu
6868
* Validates the current instance of the AsyncApiArguments.
6969
* Throws if invalid.
7070
*/
71-
validate() {
71+
validate(workflow?: Partial<Specification.Workflow>) {
7272
const copy = new AsyncApiArguments(this as any) as AsyncApiArgumentsIntersection;
73-
validate('AsyncApiArguments', copy);
73+
validate('AsyncApiArguments', copy, workflow);
7474
}
7575

7676
/**

src/lib/generated/classes/authentication-policy-reference.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ export class AuthenticationPolicyReference extends ObjectHydrator<Specification.
5959
* Validates the current instance of the AuthenticationPolicyReference.
6060
* Throws if invalid.
6161
*/
62-
validate() {
62+
validate(workflow?: Partial<Specification.Workflow>) {
6363
const copy = new AuthenticationPolicyReference(this as any) as AuthenticationPolicyReferenceIntersection;
64-
validate('AuthenticationPolicyReference', copy);
64+
validate('AuthenticationPolicyReference', copy, workflow);
6565
}
6666

6767
/**

src/lib/generated/classes/authentication-policy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ export class AuthenticationPolicy extends ObjectHydrator<Specification.Authentic
9292
* Validates the current instance of the AuthenticationPolicy.
9393
* Throws if invalid.
9494
*/
95-
validate() {
95+
validate(workflow?: Partial<Specification.Workflow>) {
9696
const copy = new AuthenticationPolicy(this as any) as AuthenticationPolicyIntersection;
97-
validate('AuthenticationPolicy', copy);
97+
validate('AuthenticationPolicy', copy, workflow);
9898
}
9999

100100
/**

src/lib/generated/classes/basic-authentication-policy-configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ export class BasicAuthenticationPolicyConfiguration extends ObjectHydrator<Speci
6161
* Validates the current instance of the BasicAuthenticationPolicyConfiguration.
6262
* Throws if invalid.
6363
*/
64-
validate() {
64+
validate(workflow?: Partial<Specification.Workflow>) {
6565
const copy = new BasicAuthenticationPolicyConfiguration(
6666
this as any,
6767
) as BasicAuthenticationPolicyConfigurationIntersection;
68-
validate('BasicAuthenticationPolicyConfiguration', copy);
68+
validate('BasicAuthenticationPolicyConfiguration', copy, workflow);
6969
}
7070

7171
/**

src/lib/generated/classes/basic-authentication-policy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export class BasicAuthenticationPolicy extends ObjectHydrator<Specification.Basi
6363
* Validates the current instance of the BasicAuthenticationPolicy.
6464
* Throws if invalid.
6565
*/
66-
validate() {
66+
validate(workflow?: Partial<Specification.Workflow>) {
6767
const copy = new BasicAuthenticationPolicy(this as any) as BasicAuthenticationPolicyIntersection;
68-
validate('BasicAuthenticationPolicy', copy);
68+
validate('BasicAuthenticationPolicy', copy, workflow);
6969
}
7070

7171
/**

src/lib/generated/classes/basic-authentication-properties.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ export class BasicAuthenticationProperties extends ObjectHydrator<Specification.
5959
* Validates the current instance of the BasicAuthenticationProperties.
6060
* Throws if invalid.
6161
*/
62-
validate() {
62+
validate(workflow?: Partial<Specification.Workflow>) {
6363
const copy = new BasicAuthenticationProperties(this as any) as BasicAuthenticationPropertiesIntersection;
64-
validate('BasicAuthenticationProperties', copy);
64+
validate('BasicAuthenticationProperties', copy, workflow);
6565
}
6666

6767
/**

src/lib/generated/classes/bearer-authentication-policy-configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ export class BearerAuthenticationPolicyConfiguration extends ObjectHydrator<Spec
6161
* Validates the current instance of the BearerAuthenticationPolicyConfiguration.
6262
* Throws if invalid.
6363
*/
64-
validate() {
64+
validate(workflow?: Partial<Specification.Workflow>) {
6565
const copy = new BearerAuthenticationPolicyConfiguration(
6666
this as any,
6767
) as BearerAuthenticationPolicyConfigurationIntersection;
68-
validate('BearerAuthenticationPolicyConfiguration', copy);
68+
validate('BearerAuthenticationPolicyConfiguration', copy, workflow);
6969
}
7070

7171
/**

src/lib/generated/classes/bearer-authentication-policy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export class BearerAuthenticationPolicy extends ObjectHydrator<Specification.Bea
6464
* Validates the current instance of the BearerAuthenticationPolicy.
6565
* Throws if invalid.
6666
*/
67-
validate() {
67+
validate(workflow?: Partial<Specification.Workflow>) {
6868
const copy = new BearerAuthenticationPolicy(this as any) as BearerAuthenticationPolicyIntersection;
69-
validate('BearerAuthenticationPolicy', copy);
69+
validate('BearerAuthenticationPolicy', copy, workflow);
7070
}
7171

7272
/**

src/lib/generated/classes/bearer-authentication-properties.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ export class BearerAuthenticationProperties extends ObjectHydrator<Specification
5959
* Validates the current instance of the BearerAuthenticationProperties.
6060
* Throws if invalid.
6161
*/
62-
validate() {
62+
validate(workflow?: Partial<Specification.Workflow>) {
6363
const copy = new BearerAuthenticationProperties(this as any) as BearerAuthenticationPropertiesIntersection;
64-
validate('BearerAuthenticationProperties', copy);
64+
validate('BearerAuthenticationProperties', copy, workflow);
6565
}
6666

6767
/**

src/lib/generated/classes/call-async-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ export class CallAsyncAPI extends _TaskBase {
7474
* Validates the current instance of the CallAsyncAPI.
7575
* Throws if invalid.
7676
*/
77-
validate() {
77+
validate(workflow?: Partial<Specification.Workflow>) {
7878
const copy = new CallAsyncAPI(this as any) as CallAsyncAPIIntersection;
79-
validate('CallAsyncAPI', copy);
79+
validate('CallAsyncAPI', copy, workflow);
8080
}
8181

8282
/**

src/lib/generated/classes/call-function.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ export class CallFunction extends _TaskBase {
7373
* Validates the current instance of the CallFunction.
7474
* Throws if invalid.
7575
*/
76-
validate() {
76+
validate(workflow?: Partial<Specification.Workflow>) {
7777
const copy = new CallFunction(this as any) as CallFunctionIntersection;
78-
validate('CallFunction', copy);
78+
validate('CallFunction', copy, workflow);
7979
}
8080

8181
/**

src/lib/generated/classes/call-grpc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ export class CallGRPC extends _TaskBase {
7474
* Validates the current instance of the CallGRPC.
7575
* Throws if invalid.
7676
*/
77-
validate() {
77+
validate(workflow?: Partial<Specification.Workflow>) {
7878
const copy = new CallGRPC(this as any) as CallGRPCIntersection;
79-
validate('CallGRPC', copy);
79+
validate('CallGRPC', copy, workflow);
8080
}
8181

8282
/**

src/lib/generated/classes/call-http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ export class CallHTTP extends _TaskBase {
7474
* Validates the current instance of the CallHTTP.
7575
* Throws if invalid.
7676
*/
77-
validate() {
77+
validate(workflow?: Partial<Specification.Workflow>) {
7878
const copy = new CallHTTP(this as any) as CallHTTPIntersection;
79-
validate('CallHTTP', copy);
79+
validate('CallHTTP', copy, workflow);
8080
}
8181

8282
/**

src/lib/generated/classes/call-open-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ export class CallOpenAPI extends _TaskBase {
7474
* Validates the current instance of the CallOpenAPI.
7575
* Throws if invalid.
7676
*/
77-
validate() {
77+
validate(workflow?: Partial<Specification.Workflow>) {
7878
const copy = new CallOpenAPI(this as any) as CallOpenAPIIntersection;
79-
validate('CallOpenAPI', copy);
79+
validate('CallOpenAPI', copy, workflow);
8080
}
8181

8282
/**

src/lib/generated/classes/call-task.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ export class CallTask extends ObjectHydrator<Specification.CallTask> {
8686
* Validates the current instance of the CallTask.
8787
* Throws if invalid.
8888
*/
89-
validate() {
89+
validate(workflow?: Partial<Specification.Workflow>) {
9090
const copy = new CallTask(this as any) as CallTaskIntersection;
91-
validate('CallTask', copy);
91+
validate('CallTask', copy, workflow);
9292
}
9393

9494
/**

src/lib/generated/classes/catch-errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class CatchErrors extends ObjectHydrator<Specification.CatchErrors> {
5858
* Validates the current instance of the CatchErrors.
5959
* Throws if invalid.
6060
*/
61-
validate() {
61+
validate(workflow?: Partial<Specification.Workflow>) {
6262
const copy = new CatchErrors(this as any) as CatchErrorsIntersection;
63-
validate('CatchErrors', copy);
63+
validate('CatchErrors', copy, workflow);
6464
}
6565

6666
/**

src/lib/generated/classes/constant-backoff.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class ConstantBackoff extends ObjectHydrator<Specification.ConstantBackof
5858
* Validates the current instance of the ConstantBackoff.
5959
* Throws if invalid.
6060
*/
61-
validate() {
61+
validate(workflow?: Partial<Specification.Workflow>) {
6262
const copy = new ConstantBackoff(this as any) as ConstantBackoffIntersection;
63-
validate('ConstantBackoff', copy);
63+
validate('ConstantBackoff', copy, workflow);
6464
}
6565

6666
/**

src/lib/generated/classes/container-environment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class ContainerEnvironment extends ObjectHydrator<Specification.Container
5858
* Validates the current instance of the ContainerEnvironment.
5959
* Throws if invalid.
6060
*/
61-
validate() {
61+
validate(workflow?: Partial<Specification.Workflow>) {
6262
const copy = new ContainerEnvironment(this as any) as ContainerEnvironmentIntersection;
63-
validate('ContainerEnvironment', copy);
63+
validate('ContainerEnvironment', copy, workflow);
6464
}
6565

6666
/**

src/lib/generated/classes/container-ports.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class ContainerPorts extends ObjectHydrator<Specification.ContainerPorts>
5858
* Validates the current instance of the ContainerPorts.
5959
* Throws if invalid.
6060
*/
61-
validate() {
61+
validate(workflow?: Partial<Specification.Workflow>) {
6262
const copy = new ContainerPorts(this as any) as ContainerPortsIntersection;
63-
validate('ContainerPorts', copy);
63+
validate('ContainerPorts', copy, workflow);
6464
}
6565

6666
/**

src/lib/generated/classes/container-volumes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class ContainerVolumes extends ObjectHydrator<Specification.ContainerVolu
5858
* Validates the current instance of the ContainerVolumes.
5959
* Throws if invalid.
6060
*/
61-
validate() {
61+
validate(workflow?: Partial<Specification.Workflow>) {
6262
const copy = new ContainerVolumes(this as any) as ContainerVolumesIntersection;
63-
validate('ContainerVolumes', copy);
63+
validate('ContainerVolumes', copy, workflow);
6464
}
6565

6666
/**

src/lib/generated/classes/container.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ export class Container extends ObjectHydrator<Specification.Container> {
6767
* Validates the current instance of the Container.
6868
* Throws if invalid.
6969
*/
70-
validate() {
70+
validate(workflow?: Partial<Specification.Workflow>) {
7171
const copy = new Container(this as any) as ContainerIntersection;
72-
validate('Container', copy);
72+
validate('Container', copy, workflow);
7373
}
7474

7575
/**

src/lib/generated/classes/digest-authentication-policy-configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ export class DigestAuthenticationPolicyConfiguration extends ObjectHydrator<Spec
6161
* Validates the current instance of the DigestAuthenticationPolicyConfiguration.
6262
* Throws if invalid.
6363
*/
64-
validate() {
64+
validate(workflow?: Partial<Specification.Workflow>) {
6565
const copy = new DigestAuthenticationPolicyConfiguration(
6666
this as any,
6767
) as DigestAuthenticationPolicyConfigurationIntersection;
68-
validate('DigestAuthenticationPolicyConfiguration', copy);
68+
validate('DigestAuthenticationPolicyConfiguration', copy, workflow);
6969
}
7070

7171
/**

src/lib/generated/classes/digest-authentication-policy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export class DigestAuthenticationPolicy extends ObjectHydrator<Specification.Dig
6464
* Validates the current instance of the DigestAuthenticationPolicy.
6565
* Throws if invalid.
6666
*/
67-
validate() {
67+
validate(workflow?: Partial<Specification.Workflow>) {
6868
const copy = new DigestAuthenticationPolicy(this as any) as DigestAuthenticationPolicyIntersection;
69-
validate('DigestAuthenticationPolicy', copy);
69+
validate('DigestAuthenticationPolicy', copy, workflow);
7070
}
7171

7272
/**

src/lib/generated/classes/digest-authentication-properties.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ export class DigestAuthenticationProperties extends ObjectHydrator<Specification
5959
* Validates the current instance of the DigestAuthenticationProperties.
6060
* Throws if invalid.
6161
*/
62-
validate() {
62+
validate(workflow?: Partial<Specification.Workflow>) {
6363
const copy = new DigestAuthenticationProperties(this as any) as DigestAuthenticationPropertiesIntersection;
64-
validate('DigestAuthenticationProperties', copy);
64+
validate('DigestAuthenticationProperties', copy, workflow);
6565
}
6666

6767
/**

src/lib/generated/classes/do-task.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ export class DoTask extends _TaskBase {
7373
* Validates the current instance of the DoTask.
7474
* Throws if invalid.
7575
*/
76-
validate() {
76+
validate(workflow?: Partial<Specification.Workflow>) {
7777
const copy = new DoTask(this as any) as DoTaskIntersection;
78-
validate('DoTask', copy);
78+
validate('DoTask', copy, workflow);
7979
}
8080

8181
/**

src/lib/generated/classes/document.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ export class Document extends ObjectHydrator<Specification.Document> {
6565
* Validates the current instance of the Document.
6666
* Throws if invalid.
6767
*/
68-
validate() {
68+
validate(workflow?: Partial<Specification.Workflow>) {
6969
const copy = new Document(this as any) as DocumentIntersection;
70-
validate('Document', copy);
70+
validate('Document', copy, workflow);
7171
}
7272

7373
/**

src/lib/generated/classes/duration-inline.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class DurationInline extends ObjectHydrator<Specification.DurationInline>
5858
* Validates the current instance of the DurationInline.
5959
* Throws if invalid.
6060
*/
61-
validate() {
61+
validate(workflow?: Partial<Specification.Workflow>) {
6262
const copy = new DurationInline(this as any) as DurationInlineIntersection;
63-
validate('DurationInline', copy);
63+
validate('DurationInline', copy, workflow);
6464
}
6565

6666
/**

src/lib/generated/classes/duration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class Duration extends ObjectHydrator<Specification.Duration> {
5858
* Validates the current instance of the Duration.
5959
* Throws if invalid.
6060
*/
61-
validate() {
61+
validate(workflow?: Partial<Specification.Workflow>) {
6262
const copy = new Duration(this as any) as DurationIntersection;
63-
validate('Duration', copy);
63+
validate('Duration', copy, workflow);
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)