Forum Discussion
HKosova
Alumni
5 years agoHi Jeremy,
Your example
<element>
<name>jeremy</name>
<title>designer</title>
<dogs>tito</dogs>
<dogs>burrito</dogs>
<dogs>cheeto</dogs>
</element>
can be defined as follows:
components:
schemas:
element:
type: object
properties:
name:
type: string
example: jeremy
title:
type: string
example: designer
dogs:
type: array
items:
type: string
xml:
wrapped: false
example:
- tito
- burrito
- cheeto
See also Representing XML.