@@ -87,7 +87,7 @@ It could look like this:
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 @@ After having that NPM `generate-client` script there, you can run it with:
106106$npm run generate-client
107107
108108frontend-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 @@ Now as the end result is in a file `openapi.json`, you would modify the `package
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" :" " ,