mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-21 22:58:10 +00:00
fix(shell): config: fix codegen
This commit is contained in:
parent
92abde9af2
commit
dc7f619b48
@ -60,7 +60,10 @@ void (async () => {
|
||||
|
||||
await writeFile(
|
||||
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...')
|
||||
|
Loading…
Reference in New Issue
Block a user