mirror of https://github.com/tiangolo/fastapi.git
Merge branch 'tiangolo:master' into update-en/docs/tutorial/debugging.md
This commit is contained in:
commit
f74ed2c918
|
|
@ -87,7 +87,7 @@ It could look like this:
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"generate-client": "openapi --input http://localhost:8000/openapi.json --output ./src/client --client axios"
|
"generate-client": "openapi --input http://localhost:8000/openapi.json --output ./src/client --client axios --useOptions --useUnionTypes"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "",
|
"license": "",
|
||||||
|
|
@ -106,7 +106,7 @@ After having that NPM `generate-client` script there, you can run it with:
|
||||||
$ npm run generate-client
|
$ npm run generate-client
|
||||||
|
|
||||||
frontend-app@1.0.0 generate-client /home/user/code/frontend-app
|
frontend-app@1.0.0 generate-client /home/user/code/frontend-app
|
||||||
> openapi --input http://localhost:8000/openapi.json --output ./src/client --client axios
|
> openapi --input http://localhost:8000/openapi.json --output ./src/client --client axios --useOptions --useUnionTypes
|
||||||
```
|
```
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -246,7 +246,7 @@ Now as the end result is in a file `openapi.json`, you would modify the `package
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"generate-client": "openapi --input ./openapi.json --output ./src/client --client axios"
|
"generate-client": "openapi --input ./openapi.json --output ./src/client --client axios --useOptions --useUnionTypes"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "",
|
"license": "",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,10 @@ hide:
|
||||||
|
|
||||||
* 🔧 Update sponsors, add Scalar. PR [#10728](https://github.com/tiangolo/fastapi/pull/10728) by [@tiangolo](https://github.com/tiangolo).
|
* 🔧 Update sponsors, add Scalar. PR [#10728](https://github.com/tiangolo/fastapi/pull/10728) by [@tiangolo](https://github.com/tiangolo).
|
||||||
|
|
||||||
|
### Docs
|
||||||
|
|
||||||
|
* 📝 Tweak default suggested configs for generating clients. PR [#10736](https://github.com/tiangolo/fastapi/pull/10736) by [@tiangolo](https://github.com/tiangolo).
|
||||||
|
|
||||||
### Internal
|
### Internal
|
||||||
|
|
||||||
* 🔧 Update sponsors, remove Fern. PR [#10729](https://github.com/tiangolo/fastapi/pull/10729) by [@tiangolo](https://github.com/tiangolo).
|
* 🔧 Update sponsors, remove Fern. PR [#10729](https://github.com/tiangolo/fastapi/pull/10729) by [@tiangolo](https://github.com/tiangolo).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue