Skip to content

Commit 652e4f2

Browse files
author
Nils Lindemann
committed
Sync with #10736
1 parent b1a8caf commit 652e4f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/de/docs/advanced/generate-clients.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Diese könnte so aussehen:
8787
"description": "",
8888
"main": "index.js",
8989
"scripts": {
90-
"generate-client": "openapi --input http://localhost:8000/openapi.json --output ./src/client --client axios"
90+
"generate-client": "openapi --input http://localhost:8000/openapi.json --output ./src/client --client axios --useOptions --useUnionTypes"
9191
},
9292
"author": "",
9393
"license": "",
@@ -106,7 +106,7 @@ Nachdem Sie das NPM-Skript `generate-client` dort stehen haben, können Sie es a
106106
$ npm run generate-client
107107

108108
frontend-app@1.0.0 generate-client /home/user/code/frontend-app
109-
> openapi --input http://localhost:8000/openapi.json --output ./src/client --client axios
109+
> openapi --input http://localhost:8000/openapi.json --output ./src/client --client axios --useOptions --useUnionTypes
110110
```
111111

112112
</div>
@@ -246,7 +246,7 @@ Da das Endergebnis nun in einer Datei `openapi.json` vorliegt, würden Sie die `
246246
"description": "",
247247
"main": "index.js",
248248
"scripts": {
249-
"generate-client": "openapi --input ./openapi.json --output ./src/client --client axios"
249+
"generate-client": "openapi --input ./openapi.json --output ./src/client --client axios --useOptions --useUnionTypes"
250250
},
251251
"author": "",
252252
"license": "",

0 commit comments

Comments
 (0)