1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
swagger: '2.0'
info:
title: Title
description: some description
contact:
name: John Doe
url: https://www.acme.com/support
email: support@acme.com
version: "1.0.0"
paths:
/:
get:
responses:
200:
description: Example path
schema:
#$ref: '#/definitions/ExecuteValues'
type: string
default:
description: generic error
schema:
type: string
definitions:
ExecuteValues:
description: recursive definition
type: object
properties:
Value:
$ref: "#/definitions/ExecuteValue"
Array:
description: array definition
type: array
items:
$ref: "#/definitions/ExecuteValues"
default:
Array:
- Array:
- Value:
Value: value
ValueType: ExecuteValueString
- Value:
Value: true
ValueType: ExecuteValueBoolean
ExecuteValue:
description: non-recursive definition
type: object
discriminator: ValueType
required:
- ValueType
- Test
properties:
ValueType:
description: the type of the value
type: string
Test:
description: a test
type: string
|