79073300

Date: 2024-10-10 08:02:16
Score: 0.5
Natty:
Report link

To solve this problem I made the following dto:

export class EmptyDto {}

Then I add this dto to annotations of all endpoints that don't have a body. Here is one example:

@AsyncApiSub({
    channel: ActivityActions.GENERATE_DEMO_ACTIVITY,
    message: {
        payload: EmptyDto,
    },
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: André