Skip to content

GET request doesn't work with a request body #1250

Closed
@tamanna2702

Description

@tamanna2702

Describe the bug

  • 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

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