swagger2-koa icon indicating copy to clipboard operation
swagger2-koa copied to clipboard

Replace koa-router with custom Swagger-aware router

Open carlansley opened this issue 8 years ago • 4 comments

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).

carlansley avatar Nov 01 '16 17:11 carlansley

+1

catest avatar May 26 '17 07:05 catest

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

dmpvost avatar Feb 01 '18 15:02 dmpvost

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

carlansley avatar Feb 06 '18 16:02 carlansley

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

carlansley avatar Feb 06 '18 17:02 carlansley