...
1swagger: '2.0'
2info:
3 title: Title
4 description: some description
5 contact:
6 name: John Doe
7 url: https://www.acme.com/support
8 email: support@acme.com
9 version: "1.0.0"
10paths:
11 /:
12 get:
13 responses:
14 200:
15 description: Example path
16 schema:
17 type: string
18 default:
19 description: generic error
20 schema:
21 type: string
22definitions:
23 ExecuteValues:
24 type: object
25 properties:
26 Value:
27 $ref: "#/definitions/ExecuteValue"
28 Array:
29 type: array
30 items:
31 $ref: "#/definitions/ExecuteValues"
32
33 ExecuteValue:
34 type: object
35 discriminator: ValueType
36 required:
37 - ValueType
38 properties:
39 ValueType:
40 type: string
41 Test:
42 type: string
43 ExecutableValueString:
44 allOf:
45 - $ref: '#/definitions/ExecuteValue'
46 - type: object
47 properties:
48 something:
49 type: string
View as plain text