blob: b2c0c97983d9655a1d2fe5e01c003cd57cb85cc9 [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": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +02005 "schemas": {
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +02006 "MyString": {
Marcel van Lohuizen9fad62f2019-08-13 01:39:10 +02007 "type": "object",
Marcel van Lohuizenfdd176c2019-06-25 18:12:26 +02008 "oneOf": [
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +02009 {
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +020010 "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 {
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +020021 "required": [
22 "regex"
23 ],
24 "properties": {
25 "regex": {
Marcel van Lohuizena0d2a402019-06-29 14:07:41 +020026 "type": "string",
27 "format": "string"
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +020028 }
29 }
30 }
31 ]
32 },
33 "MyInt": {
34 "type": "integer"
35 },
36 "Foo": {
37 "type": "object",
38 "required": [
39 "include",
40 "exclude",
41 "count"
42 ],
43 "properties": {
Marcel van Lohuizenc89f5a62019-07-04 10:41:18 +020044 "include": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +020045 "$ref": "#/components/schemas/MyString"
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +020046 },
47 "exclude": {
48 "type": "array",
49 "items": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +020050 "$ref": "#/components/schemas/MyString"
Marcel van Lohuizenfdd176c2019-06-25 18:12:26 +020051 }
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +020052 },
Marcel van Lohuizenc89f5a62019-07-04 10:41:18 +020053 "count": {
Marcel van Lohuizen0a975332019-07-04 10:43:25 +020054 "$ref": "#/components/schemas/MyInt"
Marcel van Lohuizen95fcc282019-06-25 17:37:06 +020055 }
56 }
57 }
58 }
59 }
60}