Skip to content

Unnecessary request body definitions on GET routes #170

Description

@mnahkies

I've noticed that many operations include an unnecessary request body definition that is essentially defining an empty schema, on routes that don't accept (to my knowledge at least) a request body. For example GET /v1/accounts:

  /v1/accounts:
    get:
      description: ...
      operationId: GetAccounts
      parameters:
        - ...
      requestBody:
        content:
          application/x-www-form-urlencoded:
            encoding: {}
            schema:
              additionalProperties: false
              properties: {}
              type: object
        required: false

This is a bit annoying in terms of code generation, so I'm curious as to the motivation here, and whether these could be removed?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions