Skip to content

Request body generated in Swagger YAML for POST/PUT with no body #44

@HoaBo

Description

@HoaBo

This is to reopen micronaut-projects/micronaut-core#1200

I found the related code here

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions