koa-joi-router-docs icon indicating copy to clipboard operation
koa-joi-router-docs copied to clipboard

Does not support joi 17.3.0

Open asperry182 opened this issue 4 years ago • 3 comments

Currently version 1.2.1 cant be used with joi 17.3.0 schemas. This would require an upgrade of chuyik/joi-to-swagger to support joi 17.3.0 or possibly a switch to Twipped/joi-to-swagger 5.1.0. I would appreciate it if that support for the latest joi version be added in the next release or as soon as is possible, thanks.

asperry182 avatar Dec 03 '20 17:12 asperry182

@asperry182 are there any alternatives?

dreamsparkx avatar Jun 22 '22 15:06 dreamsparkx

Any updates here?

AlexRypun avatar Jul 11 '22 07:07 AlexRypun

@dreamsparkx @AlexRypun @asperry182

I had exactly the same problem, so I made an update on this package (v2) here https://www.npmjs.com/package/koa-joi-router-docs-v2

Now it supporting latest Joi and migration is just to replace a package.

Also there is an extra feature to rename keys, like nullable > x-nullable

Igor-lkm avatar Aug 02 '22 09:08 Igor-lkm