Anypoint Best Practices
preferred-media-type-representations
general > preferred-media-type-representations
Guidance / Message
Do not use '{{core.mediaType}}' as media type. If there is no standard media type and format, use extensible formats such as JSON (application/json) and XML (application/xml).
Examples
valid
responses:
200:
description: Ok!
body:
application/xml:
type: string
invalid
responses:
200:
body:
text/html:
type: string
example: Text!
Applies to Payload