There's already a TODO in the code for this, but when parsing the OpenAPI schema, API Star does not seem to cater for media types other than application/json.
The OpenAPI 3 specification makes provision for operations to consume many different media types in requestBody, as per the example for Form Data below:
/survey:
post:
requestBody:
required: true
content:
application/x-www-form-urlencoded: # <!--- API Star does not support using this media type
schema:
type: object
properties:
name:
type: string
fav_number:
type: integer
required:
- name
- email
At the moment, using anything other than application/json in the schema will raise a ClientError with code invalid_property.
There's already a TODO in the code for this, but when parsing the OpenAPI schema, API Star does not seem to cater for media types other than
application/json
.The OpenAPI 3 specification makes provision for operations to consume many different media types in
requestBody
, as per the example for Form Data below:At the moment, using anything other than
application/json
in the schema will raise aClientError
with codeinvalid_property
.