Created
November 17, 2021 14:29
-
-
Save ponelat/556b53ac99333924d7e82d44ffc94fe1 to your computer and use it in GitHub Desktop.
XML Attribute in OpenAPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.1 | |
info: | |
version: 1.1.1 | |
title: XML attributes | |
paths: | |
/foo: | |
get: | |
responses: | |
default: | |
description: ok | |
content: | |
application/xml: | |
schema: | |
$ref: '#/components/schemas/person' | |
components: | |
schemas: | |
person: | |
title: person | |
type: object | |
properties: | |
name: | |
type: string | |
example: Josh | |
xml: | |
attribute: true | |
pets: | |
type: array | |
items: | |
type: string | |
enum: | |
- dog | |
- cat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment