I am trying to create an OpenAPI 3.0 definition for an existing API. It has a POST operation and takes header values as the input. Request body is empty. However the backend API was coded very poorly and is expecting request header Content-Type: application/json
even though the body is empty.
How do I achieve this in OpenAPI 3.0? Looks like Content-Type
is not accepted as a valid header parameter in OAS 3.0.