Skip to content

GET doesn't work with request body #2678

@tamanna2702

Description

@tamanna2702

I am using springdoc-openapi version 1.5.9 and have a GET method in my controller with a request body. The endpoint works completly fine with postman but with Swagger UI, it gives 'TypeError : Failed to execute fetch on Window.Request with GET/HEAD method cannot have body'.

Expected behavior:

GET with request body should be allowed
The PR to support this expectation : #2117

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