koa-swagger-decorator
koa-swagger-decorator copied to clipboard
Add support for oneOf/allOf/anyOf directives in @body
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() {}