Skip to content

Instantly share code, notes, and snippets.

@ponelat
Created November 17, 2021 14:29
Show Gist options
  • Save ponelat/556b53ac99333924d7e82d44ffc94fe1 to your computer and use it in GitHub Desktop.
Save ponelat/556b53ac99333924d7e82d44ffc94fe1 to your computer and use it in GitHub Desktop.
XML Attribute in OpenAPI
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