blob: 83384fb349572e56f5fcff782b793bc2188bcffe [file] [log] [blame]
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +02001{
2 "openapi": "3.0.0",
Marcel van Lohuizen4de93e12019-07-02 20:04:10 +02003 "info": {},
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +02004 "components": {
5 "schema": {
6 "MyString": {
Marcel van Lohuizenfdd176c2019-06-25 18:12:26 +02007 "oneOf": [
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +02008 {
9 "type": "object",
10 "required": [
11 "exact"
12 ],
13 "properties": {
14 "exact": {
Marcel van Lohuizena0d2a402019-06-29 14:07:41 +020015 "type": "string",
16 "format": "string"
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +020017 }
18 }
19 },
20 {
21 "type": "object",
22 "required": [
23 "regex"
24 ],
25 "properties": {
26 "regex": {
Marcel van Lohuizena0d2a402019-06-29 14:07:41 +020027 "type": "string",
28 "format": "string"
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +020029 }
30 }
31 }
32 ]
33 },
34 "MyInt": {
35 "type": "integer"
36 },
37 "Foo": {
38 "type": "object",
39 "required": [
40 "include",
41 "exclude",
42 "count"
43 ],
44 "properties": {
45 "count": {
46 "$ref": "#/components/schema/MyInt"
47 },
48 "exclude": {
49 "type": "array",
50 "items": {
51 "$ref": "#/components/schema/MyString"
Marcel van Lohuizenfdd176c2019-06-25 18:12:26 +020052 }
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +020053 },
54 "include": {
55 "$ref": "#/components/schema/MyString"
56 }
57 }
58 }
59 }
60 }
61}