Skip to content

The "required" flag on "requestBody" is not managed #292

Description

@esimonneau

On "OpenAPI" documentation, we can read that the request body is not required by default but a "required" flag exists to make it mandatory :

image

But this field seems to be not managed and I saw that the body becomes required if "application/json" is the only specified format defined for the content
See validation.js

Could it be possible to add push "requestBody" on the required array only if the "required" flag is set to "true" on OpenAPI documentation ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions