Cody2333 / koa-swagger-decorator

using decorator to automatically generate swagger doc for koa-router
349 stars 81 forks source link

Add support for oneOf/allOf/anyOf directives in @body #143

Open hjfitz opened 2 years ago

hjfitz commented 2 years ago

It would be great if we could specify different types in @body, or another decorator like @bodies to enable us to support different payload formats.

For example:

@request('POST', '/example-url')
@bodies({directive: 'allOf', payloads: [SchemaOne, SchemaTwo]})
someRequest() {}