Include schemas in generated frontend client (#584)

This commit is contained in:
Alejandra
2024-01-22 15:16:21 -05:00
committed by GitHub
parent d91ed067a8
commit 6ecc8a06ec
16 changed files with 292 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"generate-client": "openapi --input ./openapi.json --useOptions --useUnionTypes --output ./src/client --client axios"
"generate-client": "openapi --input ./openapi.json --useOptions --useUnionTypes --output ./src/client --client axios --exportSchemas true"
},
"dependencies": {
"axios": "1.6.2",