Closed bhanuc closed 1 year ago
Hi @bhanuc , thanks for reporting this issue. I believe the problem is caused by an accidental breaking change in Prisma 5.1.1. The issue is tracked here: https://github.com/prisma/prisma/issues/20614
The issue is supposed to be resolved in Prisma 5.2 release (landing in a few days). Before that happens, please stay with 5.0.
The OpenAPI plugin generates many many types when running with "rpc" flavor (basically mirroring how Prisma generates types), and I believe it'll cause problem loading into UI when there're many tables ...
Hi @ymc9, Prisma 5.2 was released few hours ago. I tested 5.2, 5.0 and 4.17.0-dev.87 . Still getting same error on all versions. Should I also downgrade zenstack as well ?
Hi @ymc9, Prisma 5.2 was released few hours ago. I tested 5.2, 5.0 and 4.17.0-dev.87 . Still getting same error on all versions. Should I also downgrade zenstack as well ?
Oh, great news! Let me try it out now.
Hi @bhanuc , I just tried upgrading and running openapi plugin in a sample project and the generated output loaded fine in redocly. I suspect it has something to do with the casing of your model names, but I couldn't reproduce it ...
Is it possible to have your zmodel file or the generated openapi file? Thanks!
Fixed in release beta.20
Description and expected behavior I am generating API for around 36 tables, which is creating huge openapi.json file. This file hangs up when loading in redoc and swagger ui (this loads and shows the list of routes, but gets stuck when you try to open any route). I thought it could be a size related issue, though I tried to import the json to redocly I got error : Validation failed with 164 errors and 937 warnings. All the errors are unresolved refs - sharing an example of error and the api.json below