Martin

Results 5 comments of Martin

Hope we can have an auto openapi middleware like Hapi.js Hapi generates openapi doc by Joi validator. Hono already has zod validator middleware. https://github.com/asteasolutions/zod-to-openapi

> @kiancyc > > Is Hapi's generator this?: https://github.com/hapi-swagger/hapi-swagger > > @ZerNico > > Yeah, it's great that we can support Zod, Valibot, Joi, or others. Hono's validator (though the...

I can give two more web framework examples that has openai doc function buil-in: Nest.JS TS FastApi Python They all have openapi integration out of box.

> I've tried "[zod-to-openapi](https://github.com/asteasolutions/zod-to-openapi)" and a new feature for the validator. > > Even though it's not released yet, I've made the zod validator capable of receiving the schema argument...

Express.js joi and swagger integration middleware: https://github.com/vforv/express-joi-simple ``` import * as express from 'express'; import * as joi from 'joi'; import * as BodyParser from 'body-parser'; import { Doc, Validate,...