Skip to content

Instantly share code, notes, and snippets.

@iainconnor
Last active August 15, 2017 04:09
Show Gist options
  • Save iainconnor/6568520a0fbd15ccd6af583b73a2add4 to your computer and use it in GitHub Desktop.
Save iainconnor/6568520a0fbd15ccd6af583b73a2add4 to your computer and use it in GitHub Desktop.
openapi: 3.0.0
info:
version: '1.0'
title: Demo
description: 'Just a demonstration. · Generated with ❤ by GameMaker · https://github.com/iainconnor/game-maker.'
servers:
- url: 'http://www.mydemo.com/rest_api/foo'
paths:
components:
schemas:
Bar:
type: object
properties:
zim:
oneOf:
- type: string
- type: integer
zam:
oneOf:
- type: array
items:
type: string
- type: array
items:
$ref: '#/components/schemas/Fuzz'
- type: boolean
zuzz:
type: array
items:
$ref: '#/components/schemas/Fizz'
required:
- zim
- zam
- zuzz
Fizz:
type: object
properties:
a:
type: string
Fuzz:
type: object
allOf:
- type: object
- $ref: '#/components/schemas/Fizz'
- properties:
b:
type: boolean
required:
- b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment