openapi: import from yaml instead of JSON
Use the yaml representation of the openapi used in Image Builder to load generate the RTKQ code.
This commit is contained in:
parent
d85b02daa8
commit
45b717bc27
4 changed files with 1176 additions and 105 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
||||
|
||||
const config: ConfigFile = {
|
||||
schemaFile: '../schema/imageBuilder.json',
|
||||
schemaFile: '../schema/imageBuilder.yaml',
|
||||
apiFile: '../../src/store/emptyImageBuilderApi.ts',
|
||||
apiImport: 'emptyImageBuilderApi',
|
||||
outputFile: '../../src/store/imageBuilderApi.ts',
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
1070
api/schema/imageBuilder.yaml
Normal file
1070
api/schema/imageBuilder.yaml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue