next-rest-framework icon indicating copy to clipboard operation
next-rest-framework copied to clipboard

Improve with Zod-to-OpenAPI

Open SaadBazaz opened this issue 9 months ago • 4 comments

We can enhance the OpenAPI spec by integrating zod-to-openapi. I think that way, we can give examples, etc etc and enhance the OpenAPI spec.

SaadBazaz avatar Mar 28 '25 16:03 SaadBazaz

Good idea, that library could replace all of the internal logic for converting the zod schemas to OpenAPI 👍🏻

blomqma avatar Apr 12 '25 07:04 blomqma

@blomqma - Are you working on this? Would like to know so can refer another engineer.

SaadBazaz avatar Jun 10 '25 11:06 SaadBazaz

@SaadBazaz not working on this as of now, neither can I promise a timeframe

blomqma avatar Jun 10 '25 11:06 blomqma

I am looking into this to also support Zod 4

Hugo-Persson avatar Jul 18 '25 06:07 Hugo-Persson

@Hugo-Persson - We can use zod-openapi instead. Seems supported, and uses a better technique than zod-to-openapi

SaadBazaz avatar Nov 18 '25 15:11 SaadBazaz