koa-swagger-decorator icon indicating copy to clipboard operation
koa-swagger-decorator copied to clipboard

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

Open hjfitz opened this issue 3 years ago • 0 comments

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() {}

hjfitz avatar Nov 17 '21 13:11 hjfitz