-
Couldn't load subscription status.
- Fork 111
Description
This is to reopen micronaut-projects/micronaut-core#1200
I found the related code here
micronaut-openapi/openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiControllerVisitor.java
Line 435 in 23409f4
| continue; |
If all the body parameters are skipped, e.g. all of them are hidden parameters, then the body will be empty. In this case, I think body should not be required as in
micronaut-openapi/openapi/src/main/java/io/micronaut/openapi/visitor/OpenApiControllerVisitor.java
Line 459 in 23409f4
| requestBody.setRequired(true); |
Consequences (not related to this repo): when I use codegen to generate client code from the generated swagger.yml, it requires me to pass in an empty object although it shouldn't