open-api icon indicating copy to clipboard operation
open-api copied to clipboard

Add support for other frameworks i.e. koa, hapi...

Open jsdevel opened this issue 6 years ago • 11 comments

  • [x] Extract openapi-request-coercer
  • [x] Extract openapi-request-validator
  • [x] Extract openapi-default-setter
  • [x] Extract openapi-response-validator
  • [x] Extract openapi-security-handler
  • [x] Extract openapi-project-visitor
  • [x] Create koa-openapi
  • [ ] Create hapi-openapi
  • [ ] Create restify-openapi
  • [ ] Create serverless-openapi

jsdevel avatar Jun 19 '18 06:06 jsdevel

Hi @jsdevel, I like the idea of setting up the tooling broader - would you mind to also put restify-openapi onto the list of other frameworks?

Thx!

rockebee avatar Jun 20 '18 13:06 rockebee

done @rockebee

jsdevel avatar Jun 20 '18 16:06 jsdevel

Hi @jsdevel, your openapi solution looks very promising. What about adding support for Serverless framework?

moravcik avatar Sep 04 '18 23:09 moravcik

looks pretty cool! Added to the list. PRs welcomed :smile:

jsdevel avatar Sep 04 '18 23:09 jsdevel

Folks, any release plans for Koa? What's currently blocking it? Any help wanted?

h2non avatar Sep 24 '18 10:09 h2non

@h2non it shouldn't take too much now that most of the functionality has been abstracted to openapi-framework. Basically all that needs to happen is a duplication in https://github.com/kogosoftwarellc/open-api/blob/master/packages/koa-openapi/index.js of https://github.com/kogosoftwarellc/open-api/blob/master/packages/express-openapi/index.js. I can publish any changes.

This has been taking a while because I've been in the process of converting everything over to typescript, but that doesn't have to impede this.

jsdevel avatar Sep 24 '18 17:09 jsdevel

@h2non I'll take a stab at an initial koa-openapi implementation tonight.

jsdevel avatar Sep 24 '18 23:09 jsdevel

@h2non see #206. Doesn't work but at least gets the ball moving. Also, I'm thinking koa-router should be a required initialize arg seeing as how koa lacks that ootb. Thoughts?

jsdevel avatar Sep 28 '18 08:09 jsdevel

@h2non Just released [email protected] with #237. Has basic-usage covered. Need to write a solid README, but it mostly follows the conventions of express-openapi. See the bundled sample test for more info.

jsdevel avatar Oct 13 '18 07:10 jsdevel

Any ETA on the restify support?

josephgardner avatar Nov 11 '19 18:11 josephgardner

@josephgardner not yet, but the process is fairly simple given that the framework is there for express and koa. feel free to open a pr and i'll get it published

jsdevel avatar Nov 12 '19 17:11 jsdevel