Phase 1 complete
This commit is contained in:
24
apps/frontend/orval.config.js
Normal file
24
apps/frontend/orval.config.js
Normal file
@@ -0,0 +1,24 @@
|
||||
module.exports = {
|
||||
dreamchat: {
|
||||
input: {
|
||||
target: '../openapi/openapi.json',
|
||||
},
|
||||
output: {
|
||||
mode: 'tags-split',
|
||||
target: './src/api/generated',
|
||||
schemas: './src/api/generated/model',
|
||||
client: 'fetch',
|
||||
baseUrl: 'http://localhost:3000',
|
||||
mock: false,
|
||||
override: {
|
||||
fetch: {
|
||||
includeHttpResponseReturnType: false,
|
||||
},
|
||||
mutator: {
|
||||
path: './src/api/mutator/custom-fetch.ts',
|
||||
name: 'customFetch',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user