...
1{
2 "openapi": "3.0.0",
3 "info": {
4 "title": "test",
5 "version": "v1"
6 },
7 "paths": {},
8 "components": {
9 "schemas": {
10 "Foo": {
11 "type": "string"
12 },
13 "LoadBalancerSettings": {
14 "type": "object",
15 "properties": {
16 "consistentHash": {
17 "type": "object",
18 "properties": {
19 "httpHeaderName": {
20 "type": "string"
21 }
22 }
23 },
24 "b": {
25 "type": "string"
26 }
27 },
28 "oneOf": [
29 {
30 "not": {
31 "anyOf": [
32 {
33 "required": [
34 "consistentHash",
35 "b"
36 ],
37 "properties": {
38 "consistentHash": {
39 "oneOf": [
40 {
41 "not": {
42 "anyOf": [
43 {
44 "required": [
45 "httpHeaderName"
46 ]
47 }
48 ]
49 }
50 },
51 {
52 "required": [
53 "httpHeaderName"
54 ]
55 }
56 ]
57 }
58 }
59 }
60 ]
61 }
62 },
63 {
64 "required": [
65 "consistentHash",
66 "b"
67 ],
68 "properties": {
69 "consistentHash": {
70 "oneOf": [
71 {
72 "not": {
73 "anyOf": [
74 {
75 "required": [
76 "httpHeaderName"
77 ]
78 }
79 ]
80 }
81 },
82 {
83 "required": [
84 "httpHeaderName"
85 ]
86 }
87 ]
88 }
89 }
90 }
91 ]
92 },
93 "LoadBalancerSettings.ConsistentHashLB": {
94 "type": "object",
95 "properties": {
96 "httpHeaderName": {
97 "type": "string"
98 }
99 },
100 "oneOf": [
101 {
102 "not": {
103 "anyOf": [
104 {
105 "required": [
106 "httpHeaderName"
107 ]
108 }
109 ]
110 }
111 },
112 {
113 "required": [
114 "httpHeaderName"
115 ]
116 }
117 ]
118 }
119 }
120 }
121}
View as plain text