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?
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: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?