-
-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
Description
Description and expected behavior
use ' flavor = "rest"' in openapi plugin and '@JSON' in model, they just broke
// schema.zmodel
plugin openapi {
provider = '@zenstackhq/openapi'
flavor = "rest" // Here
output = "openapi.json"
}
type Meta {
something String
}
model User {
id Int @id
meta Meta @json // And here
}
Environment (please complete the following information):
- ZenStack version: 2.13.3
- Prisma version: 6.6.0
Additional context
example: https://codesandbox.io/p/github/LeUKi/zenstack-generate-error-demo/main?embed=1&showConsole=true
discord: https://discord.com/channels/1035538056146595961/1361262661689544714
ymc9
