Skip to content

Commit fa06763

Browse files
committed
update spec
1 parent 641a329 commit fa06763

File tree

106 files changed

+1567
-1342
lines changed

Some content is hidden

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

106 files changed

+1567
-1342
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
"lint-staged": "npx lint-staged",
1818
"clean": "npx rimraf dist && rimraf out-tsc",
1919
"tools:download-schemas": "npx ts-node --project ./tools/tsconfig.json ./tools/download-schemas.ts",
20+
"tools:generate-merged_json": "npx ts-node --project ./tools/tsconfig.json ./tools/generate-merged_json.ts",
2021
"tools:generate-definitions": "npx ts-node --project ./tools/tsconfig.json ./tools/generate-definitions.ts",
2122
"tools:generate-builders": "npx ts-node --project ./tools/tsconfig.json ./tools/generate-builders.ts",
22-
"update-code-base": "npm run tools:download-schemas && npm run tools:generate-definitions && npm run tools:generate-builders && npm run format && npm run test",
23+
"update-code-base": "npm run tools:download-schemas && tools:generate-merged_json && npm run tools:generate-definitions && npm run tools:generate-builders && npm run format && npm run test",
2324
"format": "npx prettier --write \"**/*.ts\"",
2425
"lint": "npx eslint . --ext .ts && npx prettier --check \"**/*.ts\"",
2526
"pretest": "npx rimraf out-tsc",

src/lib/builders/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# Auto generated notice
2-
32
This directory and its content has been generated automatically. Do not modify its content, it WILL be lost.

src/lib/builders/actiondatafilter-builder.ts

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

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

src/lib/builders/basicpropsdef-builder.ts

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

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

src/lib/builders/bearerpropsdef-builder.ts

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

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

src/lib/builders/correlation-def-builder.ts

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

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

src/lib/builders/crondef-builder.ts

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

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

src/lib/builders/enddeventcondition-builder.ts renamed to src/lib/builders/endeventcondition-builder.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ import { validate } from '../utils';
2020

2121
/**
2222
* The internal function used by the builder proxy to validate and return its underlying object
23-
* @param {Specification.Enddeventcondition} data The underlying object
24-
* @returns {Specification.Enddeventcondition} The validated underlying object
23+
* @param {Specification.Endeventcondition} data The underlying object
24+
* @returns {Specification.Endeventcondition} The validated underlying object
2525
*/
26-
function enddeventconditionBuildingFn(data: Specification.Enddeventcondition): () => Specification.Enddeventcondition {
26+
function endeventconditionBuildingFn(data: Specification.Endeventcondition): () => Specification.Endeventcondition {
2727
return () => {
28-
const model = new Specification.Enddeventcondition(data);
28+
const model = new Specification.Endeventcondition(data);
2929

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

3535
/**
36-
* A factory to create a builder proxy for the type `Specification.Enddeventcondition`
37-
* @returns {Specification.Enddeventcondition} A builder for `Specification.Enddeventcondition`
36+
* A factory to create a builder proxy for the type `Specification.Endeventcondition`
37+
* @returns {Specification.Endeventcondition} A builder for `Specification.Endeventcondition`
3838
*/
39-
export function enddeventconditionBuilder(): Builder<Specification.Enddeventcondition> {
40-
return builder<Specification.Enddeventcondition>(enddeventconditionBuildingFn);
39+
export function endeventconditionBuilder(): Builder<Specification.Endeventcondition> {
40+
return builder<Specification.Endeventcondition>(endeventconditionBuildingFn);
4141
}

src/lib/builders/errordef-builder.ts

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

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

src/lib/builders/eventdatafilter-builder.ts

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

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

0 commit comments

Comments
 (0)