zenstackhq / zenstack

Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks.
https://zenstack.dev
MIT License
2.07k stars 88 forks source link

OpenAPI schema is missing Bytes component declaration? #573

Closed ymc9 closed 1 year ago

ymc9 commented 1 year ago

Discussed in https://github.com/zenstackhq/zenstack/discussions/572

Originally posted by **genehynson** July 10, 2023 Hey! I'm really excited to use Zenstack for the first time and am generating an OpenAPI document from the Zenstack Openapi Prisma plugin. However, when I try to ingest this openapi spec into a visualization tool, I get the error: `"#/components/schemas/Bytes" does not exist`. And this seems to be correct - I do not see a component definition for `Bytes`. Am I doing something wrong here? Here's my Prisma schema Zenstack OpenAPI plugin usage: ``` plugin openapi { provider = '@zenstackhq/openapi' output = './openapi/generated/zenstack/openapi_complete.yaml' title = 'My API' version = '1.0.0' summary = 'My App REST APIs' prefix = '/api' } ```
ymc9 commented 1 year ago

Fixed by #584