Skip to content

Should we support the requestBody? #182

@ms14981

Description

@ms14981

In our requestBody.feature, we specifically assert that a GET request should accept a body. However, the OpenApi spec says:

In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible.

See https://swagger.io/specification/#operation-object

Perhaps we shouldn't have this test, or if we don't test the same thing elsewhere, repurpose it to make it into a POST (or other method with a well-defined spec for the request body)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions