Skip to content

Unnecessary request body definitions on GET routes #170

@mnahkies

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?

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