Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_ts_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Generate TypeScript API client
working-directory: client/typescript-axios
run: |
yarn openapi-generator generate -i ../../api.swagger.yaml -g typescript-axios -o build/src/ -c generator.yml
yarn openapi-generator-cli generate -i ../../api.swagger.yaml -g typescript-axios -o build/src/ -c generator.yml
- name: Generate PR build version
if: github.event_name == 'pull_request'
working-directory: client/typescript-axios
Expand Down
2 changes: 1 addition & 1 deletion client/typescript-axios/build/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"moduleResolution": "node",
"target": "es5",
"module": "es6",
"lib": ["es5"],
"lib": ["ES5", "DOM"],
"strict": true,
"sourceMap": true,
"declaration": true,
Expand Down
5 changes: 3 additions & 2 deletions client/typescript-axios/generator.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# RUN:
# rm -rf src/api; mkdir -p src/api/; yarn openapi-generator generate -i ../api.swagger.yaml -g typescript-axios -o src/api/ -c generator.yml
# rm -rf src/api; mkdir -p src/api/; yarn openapi-generator-cli generate -i ../../api.swagger.yaml -g typescript-axios -o src/api/ -c generator.yml

supportsES6: true
withInterfaces: true
withInterfaces: false
withSeparateModelsAndApi: true
generateAliasAsModel: true
modelPropertyNaming: 'original'
apiPackage: 'client'
modelPackage: 'model'
useSingleRequestParameter: true

# export TS_POST_PROCESS_FILE="`pwd`/node_modules/.bin/prettier --write"

Expand Down
2 changes: 1 addition & 1 deletion client/typescript-axios/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"devDependencies": {
"@openapitools/openapi-generator-cli": "^1.0.10-4.2.3"
"@openapitools/openapi-generator-cli": "^2.3.10"
}
}
Loading