carlansley / swagger2-koa

Koa 2 middleware for swagger2
MIT License
98 stars 28 forks source link

Replace koa-router with custom Swagger-aware router #4

Open carlansley opened 7 years ago

carlansley commented 7 years ago

Specifically, we need a better router than can populate the context.params object with all the various swagger-defined parameters (from the path, header, query, formData or body), and map them to the correct types (e.g. to an actual array from a CSV formatted string).

catest commented 7 years ago

+1

dmpvost commented 6 years ago

Hi, there is something like this today? I'm working with swagger2-koa.

I would like to write it maybe in typescript with data models generate by codegen for angular.

I have some question how to start too, maybe you can help me.

https://stackoverflow.com/questions/48564056/typescript-how-generate-this-in-javascript/48565538#48565538

Again thank for this very good node library

carlansley commented 6 years ago

No not today, however I'd like to implement this at some point. It's not a small effort unfortunately.

carlansley commented 6 years ago

@dmpvost I added an answer to your SO question, hopefully it helps.