Skip to content

Commit 2f4e2ab

Browse files
committed
fix-remove-default-values
1 parent 955dab0 commit 2f4e2ab

File tree

73 files changed

+397
-120
lines changed

Some content is hidden

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

73 files changed

+397
-120
lines changed

src/lib/builders/action-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function actionBuildingFn(data: Specification.Action): () => Specification.Actio
2727
return () => {
2828
const model = new Specification.Action(data);
2929

30-
validate('Action', model);
30+
validate('Action', model.normalize());
3131
return model;
3232
};
3333
}

src/lib/builders/authdef-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function authdefBuildingFn(data: Specification.Authdef): () => Specification.Aut
2727
return () => {
2828
const model = new Specification.Authdef(data);
2929

30-
validate('Authdef', model);
30+
validate('Authdef', model.normalize());
3131
return model;
3232
};
3333
}

src/lib/builders/branch-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function branchBuildingFn(data: Specification.Branch): () => Specification.Branc
2727
return () => {
2828
const model = new Specification.Branch(data);
2929

30-
validate('Branch', model);
30+
validate('Branch', model.normalize());
3131
return model;
3232
};
3333
}

src/lib/builders/callbackstate-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function callbackstateBuildingFn(data: Specification.Callbackstate): () => Speci
3030

3131
setEndValueIfNoTransition(model);
3232

33-
validate('Callbackstate', model);
33+
validate('Callbackstate', model.normalize());
3434
return model;
3535
};
3636
}

src/lib/builders/continueasdef-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function continueasdefBuildingFn(data: Specification.Continueasdef): () => Speci
2727
return () => {
2828
const model = new Specification.Continueasdef(data);
2929

30-
validate('Continueasdef', model);
30+
validate('Continueasdef', model.normalize());
3131
return model;
3232
};
3333
}

src/lib/builders/databasedswitchstate-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function databasedswitchstateBuildingFn(
2929
return () => {
3030
const model = new Specification.Databasedswitchstate(data);
3131

32-
validate('Databasedswitchstate', model);
32+
validate('Databasedswitchstate', model.normalize());
3333
return model;
3434
};
3535
}

src/lib/builders/defaultconditiondef-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function defaultconditiondefBuildingFn(
2929
return () => {
3030
const model = new Specification.Defaultconditiondef(data);
3131

32-
validate('Defaultconditiondef', model);
32+
validate('Defaultconditiondef', model.normalize());
3333
return model;
3434
};
3535
}

src/lib/builders/end-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function endBuildingFn(data: Specification.End): () => Specification.End {
2727
return () => {
2828
const model = new Specification.End(data);
2929

30-
validate('End', model);
30+
validate('End', model.normalize());
3131
return model;
3232
};
3333
}

src/lib/builders/enddatacondition-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function enddataconditionBuildingFn(data: Specification.Enddatacondition): () =>
2727
return () => {
2828
const model = new Specification.Enddatacondition(data);
2929

30-
validate('Enddatacondition', model);
30+
validate('Enddatacondition', model.normalize());
3131
return model;
3232
};
3333
}

src/lib/builders/enddeventcondition-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function enddeventconditionBuildingFn(data: Specification.Enddeventcondition): (
2727
return () => {
2828
const model = new Specification.Enddeventcondition(data);
2929

30-
validate('Enddeventcondition', model);
30+
validate('Enddeventcondition', model.normalize());
3131
return model;
3232
};
3333
}

0 commit comments

Comments
 (0)