MIME type has an improper value

Description

The value you have defined for the MIME type is not a proper value. For example, it might contain characters that are not allowed, or it might not follow the format prefix/subtype[+suffix][;parameters].

For more details, see RFC 6838.

Example

The following is an example of how this issue could look in your API definition. The prefix, subtype, and suffix are separated by spaces:

1responses:
2  "200":
3    description: Cute cat picture
4    content:
5      image svg xml:
6        schema:
7          $ref: "#/components/schemas/Kitty"
8

Remediation

Make sure that all MIME type definitions follow the format prefix/subtype[+suffix][;parameters] and do not contain restricted characters.

1responses:
2  "200":
3    description: Cute cat picture
4    content:
5      image/svg+xml:
6        schema:
7          $ref: "#/components/schemas/Kitty"
8

Copyright 42Crunch 2021