fix(shell): config: fix codegen

This commit is contained in:
Il Harper 2024-03-05 13:14:22 +08:00
parent 92abde9af2
commit dc7f619b48
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -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...')