How to add annotation @AsyncApiSub() to nestjs-asyncapi to method without payload?
I’m building an API documentation using nestjs-asyncapi
. Currently the API is properly generated for the endpoints containing a body (DTO) and properly annotated. However, if I add an @AsyncApiSub
annotation for a methods that don’t have a body (with payload: null
) I get the error: