Skip to content

Add default Validation Rule for path operations to not have a request body #2454

@martincostello

Description

@martincostello

Is your feature request related to a problem? Please describe.

I found a bug in ASP.NET Core where invalid schema references were being generated that are circular references: dotnet/aspnetcore#63090

While doing that, I noticed a separate issue where some operations in a test document for HTTP GET include a request body.

editor.swagger.io detects these issues, but the default validation ruleset does not.

Describe the solution you'd like

A validation rule for paths that verify that OpenAPI schema references are valid.

Describe alternatives you've considered

Write code to manually validate HTTP GET operations do not have a request body.

Additional context

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