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
/**

0 commit comments

Comments
 (0)