Skip to content

Openapi plugin not work with @json #2084

@LeUKi

Description

@LeUKi

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
}

Screenshots
Image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions