blob: 104adcbfb123821f5345edca83277b33e55f9ed8 [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 },
Eric Adlam9b70cf32019-09-28 11:45:31 -04007 "paths": {},
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +02008 "components": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +02009 "schemas": {
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020010 "MYSTRING": {
11 "description": "Randomly picked description from a set of size one.",
Marcel van Lohuizen9fad62f2019-08-13 01:39:10 +020012 "type": "object",
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020013 "oneOf": [
14 {
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020015 "required": [
16 "exact"
17 ],
18 "properties": {
19 "exact": {
20 "description": "Randomly picked description from a set of size one.",
21 "type": "string",
22 "format": "string"
23 }
24 }
25 },
26 {
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020027 "required": [
28 "regex"
29 ],
30 "properties": {
31 "regex": {
32 "description": "Randomly picked description from a set of size one.",
33 "type": "string",
34 "format": "string"
35 }
36 }
37 }
38 ]
39 },
40 "MYINT": {
41 "description": "Randomly picked description from a set of size one.",
42 "type": "integer"
43 },
44 "FOO": {
45 "description": "Randomly picked description from a set of size one.",
46 "type": "object",
47 "required": [
48 "include",
49 "exclude",
50 "count"
51 ],
52 "properties": {
Marcel van Lohuizenc89f5a62019-07-04 10:41:18 +020053 "include": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +020054 "$ref": "#/components/schemas/MYSTRING"
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020055 },
56 "exclude": {
57 "description": "Randomly picked description from a set of size one.",
58 "type": "array",
59 "items": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +020060 "$ref": "#/components/schemas/MYSTRING"
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020061 }
62 },
Marcel van Lohuizenc89f5a62019-07-04 10:41:18 +020063 "count": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +020064 "$ref": "#/components/schemas/MYINT"
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +020065 }
66 }
67 }
68 }
69 }
70}