Skip to content

Commit de7708e

Browse files
authored
Merge pull request #119 from antmendoza/ignore-functions-on-validation
ignore additionalProperties when are declared as function
2 parents a6903ad + 6957eeb commit de7708e

26 files changed

+75
-50
lines changed

src/lib/definitions/callbackstate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class Callbackstate {
109109
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
110110
* @returns {Specification.Callbackstate} without deleted properties.
111111
*/
112-
normalize(): Callbackstate {
112+
normalize = (): Callbackstate => {
113113
const clone = new Callbackstate(this);
114114

115115
normalizeUsedForCompensationProperty(clone);
@@ -120,5 +120,5 @@ export class Callbackstate {
120120
setEndValueIfNoTransition(clone);
121121

122122
return clone;
123-
}
123+
};
124124
}

src/lib/definitions/databasedswitch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ export class Databasedswitch {
8383
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
8484
* @returns {Specification.Databasedswitch} without deleted properties.
8585
*/
86-
normalize(): Databasedswitch {
86+
normalize = (): Databasedswitch => {
8787
const clone = new Databasedswitch(this);
8888

8989
normalizeUsedForCompensationProperty(clone);
9090
normalizeOnErrorsProperty(clone);
9191
normalizeDataConditionsProperty(clone);
9292

9393
return clone;
94-
}
94+
};
9595
}

src/lib/definitions/defaultdef.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ export class Defaultdef /* Default definition. Can be either a transition or end
3838
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
3939
* @returns {Specification.Defaultdef} without deleted properties.
4040
*/
41-
normalize(): Defaultdef {
41+
normalize = (): Defaultdef => {
4242
const clone = new Defaultdef(this);
4343

4444
normalizeEndProperty(clone);
4545
normalizeTransitionProperty(clone);
4646
setEndValueIfNoTransition(clone);
4747

4848
return clone;
49-
}
49+
};
5050
}

src/lib/definitions/delaystate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class Delaystate {
9292
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
9393
* @returns {Specification.Delaystate} without deleted properties.
9494
*/
95-
normalize(): Delaystate {
95+
normalize = (): Delaystate => {
9696
const clone = new Delaystate(this);
9797

9898
normalizeUsedForCompensationProperty(clone);
@@ -101,5 +101,5 @@ export class Delaystate {
101101
normalizeTransitionProperty(clone);
102102
setEndValueIfNoTransition(clone);
103103
return clone;
104-
}
104+
};
105105
}

src/lib/definitions/end.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ export class End {
4444
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
4545
* @returns {Specification.End} without deleted properties.
4646
*/
47-
normalize(): End {
47+
normalize = (): End => {
4848
const clone = new End(this);
4949

5050
normalizeCompensateProperty(clone);
5151
normalizeTerminateProperty(clone);
5252

5353
return clone;
54-
}
54+
};
5555
}

src/lib/definitions/enddatacondition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ export class Enddatacondition {
4343
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
4444
* @returns {Specification.Enddatacondition} without deleted properties.
4545
*/
46-
normalize(): Enddatacondition {
46+
normalize = (): Enddatacondition => {
4747
const clone = new Enddatacondition(this);
4848

4949
normalizeEndProperty(clone);
5050

5151
return clone;
52-
}
52+
};
5353
}

src/lib/definitions/enddeventcondition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ export class Enddeventcondition {
5555
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
5656
* @returns {Specification.Enddeventcondition} without deleted properties.
5757
*/
58-
normalize(): Enddeventcondition {
58+
normalize = (): Enddeventcondition => {
5959
const clone = new Enddeventcondition(this);
6060

6161
normalizeEndProperty(clone);
6262

6363
return clone;
64-
}
64+
};
6565
}

src/lib/definitions/error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Error {
5050
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
5151
* @returns {Specification.Error} without deleted properties.
5252
*/
53-
normalize(): Error {
53+
normalize = (): Error => {
5454
const clone = new Error(this);
5555

5656
normalizeEndProperty(clone);
@@ -59,5 +59,5 @@ export class Error {
5959
setEndValueIfNoTransition(clone);
6060

6161
return clone;
62-
}
62+
};
6363
}

src/lib/definitions/eventbasedswitch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ export class Eventbasedswitch {
9090
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
9191
* @returns {Specification.Eventbasedswitch} without deleted properties.
9292
*/
93-
normalize(): Eventbasedswitch {
93+
normalize = (): Eventbasedswitch => {
9494
const clone = new Eventbasedswitch(this);
9595

9696
normalizeUsedForCompensationProperty(clone);
9797
normalizeOnErrorsProperty(clone);
9898
normalizeEventConditionsProperty(clone);
9999

100100
return clone;
101-
}
101+
};
102102
}

src/lib/definitions/eventdef.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ export class Eventdef {
5757
* Normalize the value of each property by recursively deleting properties whose value is equal to its default value. Does not modify the object state.
5858
* @returns {Specification.Eventdef} without deleted properties.
5959
*/
60-
normalize(): Eventdef {
60+
normalize = (): Eventdef => {
6161
const clone = new Eventdef(this);
6262

6363
normalizeKindProperty(clone);
6464

6565
return clone;
66-
}
66+
};
6767
}

0 commit comments

Comments
 (0)