blob: 157b53c38eaa7148c6565006c716ef08d3c8f438 [file] [log] [blame]
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +02001{
2 "openapi": "3.0.0",
3 "info": {
4 "title": "test",
5 "version": "v1"
6 },
7 "components": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +02008 "schemas": {
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +02009 "MYSTRING": {
10 "description": "Randomly picked description from a set of size one.",
Marcel van Lohuizen9fad62f2019-08-13 01:39:10 +020011 "type": "object",
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020012 "oneOf": [
13 {
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020014 "required": [
15 "exact"
16 ],
17 "properties": {
18 "exact": {
19 "description": "Randomly picked description from a set of size one.",
20 "type": "string",
21 "format": "string"
22 }
23 }
24 },
25 {
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020026 "required": [
27 "regex"
28 ],
29 "properties": {
30 "regex": {
31 "description": "Randomly picked description from a set of size one.",
32 "type": "string",
33 "format": "string"
34 }
35 }
36 }
37 ]
38 },
39 "MYINT": {
40 "description": "Randomly picked description from a set of size one.",
41 "type": "integer"
42 },
43 "FOO": {
44 "description": "Randomly picked description from a set of size one.",
45 "type": "object",
46 "required": [
47 "include",
48 "exclude",
49 "count"
50 ],
51 "properties": {
Marcel van Lohuizenc89f5a62019-07-04 10:41:18 +020052 "include": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +020053 "$ref": "#/components/schemas/MYSTRING"
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020054 },
55 "exclude": {
56 "description": "Randomly picked description from a set of size one.",
57 "type": "array",
58 "items": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +020059 "$ref": "#/components/schemas/MYSTRING"
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020060 }
61 },
Marcel van Lohuizenc89f5a62019-07-04 10:41:18 +020062 "count": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +020063 "$ref": "#/components/schemas/MYINT"
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020064 }
65 }
66 }
67 }
68 }
69}