File tree 9 files changed +8
-11
lines changed
generated/openapi/typescript-axios
cactus-plugin-consortium-manual
src/main/typescript/generated/openapi/typescript-axios
cactus-plugin-ledger-connector-besu
cactus-plugin-ledger-connector-fabric
cactus-plugin-ledger-connector-quorum
9 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 10
10
"start:example-supply-chain" : " node ./examples/supply-chain-app/node_modules/.bin/cactus-example-supply-chain-backend" ,
11
11
"export-open-api-spec" : " ts-node -e 'import(\" ./packages/cactus-cmd-api-server/src/main/typescript/openapi-spec\" ).then((x) => x.exportToFileSystemAsJson());'" ,
12
12
"pregenerate-sdk" : " npm-run-all export-open-api-spec" ,
13
- "generate-sdk" : " openapi-generator generate --input-spec cactus-openapi-spec.json -g typescript-axios -o packages/cactus-api-client/src/main/typescript/generated/openapi/typescript-axios/" ,
13
+ "generate-sdk" : " openapi-generator generate --input-spec cactus-openapi-spec.json -g typescript-axios -o packages/cactus-api-client/src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected " ,
14
14
"clean" : " lerna exec --stream --ignore '*/*cockpit' -- del-cli dist/** && del-cli packages/cactus-api-client/src/main/typescript/generated/openapi/typescript-axios/*" ,
15
15
"lint" : " lerna exec --stream --ignore '*/*cockpit' -- cross-env DEBUG= tslint --project tsconfig.json" ,
16
16
"tsc" : " lerna run tsc" ,
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"export-open-api-spec" : " ts-node src/main/typescript/openapi-spec.ts" ,
16
16
"pregenerate-sdk" : " npm-run-all export-open-api-spec" ,
17
- "generate-sdk" : " openapi-generator generate --input-spec src/main/json/generated/openapi-spec.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/" ,
17
+ "generate-sdk" : " openapi-generator generate --input-spec src/main/json/generated/openapi-spec.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected " ,
18
18
"pretsc" : " npm run generate-sdk" ,
19
19
"tsc" : " tsc --project ./tsconfig.json" ,
20
20
"webpack" : " npm-run-all webpack:dev webpack:prod" ,
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ export interface JWSRecipient {
253
253
* @type {string }
254
254
* @memberof JWSRecipient
255
255
*/
256
- _protected ?: string ;
256
+ protected ?: string ;
257
257
/**
258
258
*
259
259
* @type {{ [key: string]: object; } }
Original file line number Diff line number Diff line change @@ -371,9 +371,6 @@ export const CACTUS_OPEN_API_JSON: OpenAPIV3.Document = {
371
371
signature : {
372
372
type : "string" ,
373
373
} ,
374
- // In the generated models this shows up as _protected because it is
375
- // a reserved keyword in Typescript. Opened an issue here about this:
376
- // https://github.com/OpenAPITools/openapi-generator/issues/7100
377
374
protected : {
378
375
type : "string" ,
379
376
} ,
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"export-open-api-spec" : " ts-node src/main/typescript/openapi-spec.ts" ,
16
16
"pregenerate-sdk" : " npm-run-all export-open-api-spec" ,
17
- "generate-sdk" : " openapi-generator generate --input-spec src/main/json/generated/openapi-spec.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/" ,
17
+ "generate-sdk" : " openapi-generator generate --input-spec src/main/json/generated/openapi-spec.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected " ,
18
18
"tsc" : " tsc --project ./tsconfig.json" ,
19
19
"pretsc" : " npm run generate-sdk" ,
20
20
"webpack" : " npm-run-all webpack:dev webpack:prod" ,
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export interface JWSRecipient {
81
81
* @type {string }
82
82
* @memberof JWSRecipient
83
83
*/
84
- _protected ?: string ;
84
+ protected ?: string ;
85
85
/**
86
86
*
87
87
* @type {{ [key: string]: object; } }
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"export-open-api-spec" : " ts-node src/main/typescript/openapi-spec.ts" ,
16
16
"pregenerate-sdk" : " npm-run-all export-open-api-spec" ,
17
- "generate-sdk" : " openapi-generator generate --input-spec src/main/json/generated/openapi-spec.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/" ,
17
+ "generate-sdk" : " openapi-generator generate --input-spec src/main/json/generated/openapi-spec.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected " ,
18
18
"pretsc" : " npm run generate-sdk" ,
19
19
"tsc" : " tsc --project ./tsconfig.json" ,
20
20
"webpack" : " npm-run-all webpack:dev webpack:prod" ,
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"export-open-api-spec" : " ts-node -e 'import(\" ./src/main/typescript/openapi-spec\" ).then((x) => x.exportToFileSystemAsJson());'" ,
16
16
"pregenerate-sdk" : " npm-run-all export-open-api-spec" ,
17
- "generate-sdk" : " openapi-generator generate --input-spec src/main/json/generated/openapi-spec.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/" ,
17
+ "generate-sdk" : " openapi-generator generate --input-spec src/main/json/generated/openapi-spec.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected " ,
18
18
"pretsc" : " npm run generate-sdk" ,
19
19
"tsc" : " tsc --project ./tsconfig.json" ,
20
20
"webpack" : " npm-run-all webpack:dev webpack:prod" ,
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"export-open-api-spec" : " ts-node ./src/main/typescript/openapi-spec.ts" ,
16
16
"pregenerate-sdk" : " npm-run-all export-open-api-spec" ,
17
- "generate-sdk" : " openapi-generator generate --input-spec cactus-openapi-spec-plugin-ledger-connector-quorum.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/" ,
17
+ "generate-sdk" : " openapi-generator generate --input-spec cactus-openapi-spec-plugin-ledger-connector-quorum.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected " ,
18
18
"pretsc" : " npm run generate-sdk" ,
19
19
"tsc" : " tsc --project ./tsconfig.json" ,
20
20
"webpack" : " npm-run-all webpack:dev webpack:prod" ,
You can’t perform that action at this time.
0 commit comments