mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-25 09:37:35 +00:00
fix(shell): config: fix codegen
This commit is contained in:
parent
92abde9af2
commit
dc7f619b48
@ -60,7 +60,10 @@ void (async () => {
|
|||||||
|
|
||||||
await writeFile(
|
await writeFile(
|
||||||
resolve(__dirname, '../generated/schemas.json'),
|
resolve(__dirname, '../generated/schemas.json'),
|
||||||
JSON.stringify(schemas, null, 2),
|
JSON.stringify(schemas, null, 2).replaceAll(
|
||||||
|
'"anyOf"',
|
||||||
|
'"type":"object","discriminator":{"propertyName":"type"},"oneOf"',
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
console.log('Generating schemas for openapi...')
|
console.log('Generating schemas for openapi...')
|
||||||
|
Loading…
Reference in New Issue
Block a user