You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
559 B
TypeScript
27 lines
559 B
TypeScript
import { defineConfig } from 'orval';
|
|
|
|
const apiDirPath = 'src/main/apis';
|
|
|
|
export default defineConfig({
|
|
drcApi: {
|
|
output: {
|
|
mode: 'tags-split',
|
|
target: `${apiDirPath}/drc/endpoints`,
|
|
schemas: `${apiDirPath}/drc/models`,
|
|
client: 'react-query',
|
|
clean: true,
|
|
mock: true,
|
|
prettier: true,
|
|
override: {
|
|
mutator: {
|
|
path: `${apiDirPath}/configs/mutator/drc-instance.ts`,
|
|
name: 'drcInstance',
|
|
},
|
|
},
|
|
},
|
|
input: {
|
|
target: './drc-openapi.json',
|
|
},
|
|
},
|
|
});
|