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.
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'
}
```
Discussed in https://github.com/zenstackhq/zenstack/discussions/572