Forum Discussion
HKosova
5 years agoSmartBear Alumni (Retired)
Hi 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.
Related Content
- 4 years ago
Recent Discussions
- 20 hours ago
- 9 days ago
- 10 days ago