My service provides upload of XML-files. The OpenApi specification does not specify a schema. I want to provide an example input. I try this:
/foo:
post:
requestBody:
content:
application/xml:
schema:
type: string
format: binary
example:
externalValue: 'https://www.w3schools.com/xml/note.xml'
However, swagger-ui produces the unhelpful:
<!-- XML example cannot be generated; root element name is undefined -->
Is it possible to specify an example from an external file?