Skip to content

Commit bbc3bbb

Browse files
committed
ignore additionalProperties when are declared as function
Signed-off-by: Antonio Mendoza Pérez <antmendoza@gmail.com>
1 parent 2dfb446 commit bbc3bbb

27 files changed

+78
-52
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/definitions/callbackstate.ts

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

116116
normalizeUsedForCompensationProperty(clone);
@@ -121,5 +121,5 @@ export class Callbackstate {
121121
setEndValueIfNoTransition(clone);
122122

123123
return clone;
124-
}
124+
};
125125
}

src/lib/definitions/databasedswitch.ts

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

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

9494
return clone;
95-
}
95+
};
9696
}

src/lib/definitions/defaultdef.ts

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

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

4949
return clone;
50-
}
50+
};
5151
}

src/lib/definitions/delaystate.ts

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

9999
normalizeUsedForCompensationProperty(clone);
@@ -102,5 +102,5 @@ export class Delaystate {
102102
normalizeTransitionProperty(clone);
103103
setEndValueIfNoTransition(clone);
104104
return clone;
105-
}
105+
};
106106
}

src/lib/definitions/end.ts

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

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

5454
return clone;
55-
}
55+
};
5656
}

src/lib/definitions/enddatacondition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ export class Enddatacondition {
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.Enddatacondition} without deleted properties.
4646
*/
47-
normalize(): Enddatacondition {
47+
normalize = (): Enddatacondition => {
4848
const clone = new Enddatacondition(this);
4949

5050
normalizeEndProperty(clone);
5151

5252
return clone;
53-
}
53+
};
5454
}

src/lib/definitions/enddeventcondition.ts

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

6262
normalizeEndProperty(clone);
6363

6464
return clone;
65-
}
65+
};
6666
}

src/lib/definitions/error.ts

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

5757
normalizeEndProperty(clone);
@@ -60,5 +60,5 @@ export class Error {
6060
setEndValueIfNoTransition(clone);
6161

6262
return clone;
63-
}
63+
};
6464
}

src/lib/definitions/eventbasedswitch.ts

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

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

101101
return clone;
102-
}
102+
};
103103
}

0 commit comments

Comments
 (0)