|
142 | 142 | ] |
143 | 143 | } |
144 | 144 | } |
145 | | - } |
| 145 | + }, |
| 146 | + "allOf": [ |
| 147 | + { |
| 148 | + "if": { |
| 149 | + "not": { |
| 150 | + "required": [ |
| 151 | + "schemaFormat" |
| 152 | + ] |
| 153 | + } |
| 154 | + }, |
| 155 | + "then": { |
| 156 | + "properties": { |
| 157 | + "payload": { |
| 158 | + "$ref": "http://asyncapi.com/definitions/2.4.0/schema.json" |
| 159 | + } |
| 160 | + } |
| 161 | + } |
| 162 | + }, |
| 163 | + { |
| 164 | + "if": { |
| 165 | + "required": [ |
| 166 | + "schemaFormat" |
| 167 | + ], |
| 168 | + "properties": { |
| 169 | + "schemaFormat": { |
| 170 | + "enum": [ |
| 171 | + "application/vnd.aai.asyncapi;version=2.0.0", |
| 172 | + "application/vnd.aai.asyncapi+json;version=2.0.0", |
| 173 | + "application/vnd.aai.asyncapi+yaml;version=2.0.0", |
| 174 | + "application/vnd.aai.asyncapi;version=2.1.0", |
| 175 | + "application/vnd.aai.asyncapi+json;version=2.1.0", |
| 176 | + "application/vnd.aai.asyncapi+yaml;version=2.1.0", |
| 177 | + "application/vnd.aai.asyncapi;version=2.2.0", |
| 178 | + "application/vnd.aai.asyncapi+json;version=2.2.0", |
| 179 | + "application/vnd.aai.asyncapi+yaml;version=2.2.0", |
| 180 | + "application/vnd.aai.asyncapi;version=2.3.0", |
| 181 | + "application/vnd.aai.asyncapi+json;version=2.3.0", |
| 182 | + "application/vnd.aai.asyncapi+yaml;version=2.3.0", |
| 183 | + "application/vnd.aai.asyncapi;version=2.4.0", |
| 184 | + "application/vnd.aai.asyncapi+json;version=2.4.0", |
| 185 | + "application/vnd.aai.asyncapi+yaml;version=2.4.0" |
| 186 | + ] |
| 187 | + } |
| 188 | + } |
| 189 | + }, |
| 190 | + "then": { |
| 191 | + "properties": { |
| 192 | + "payload": { |
| 193 | + "$ref": "http://asyncapi.com/definitions/2.4.0/schema.json" |
| 194 | + } |
| 195 | + } |
| 196 | + } |
| 197 | + }, |
| 198 | + { |
| 199 | + "if": { |
| 200 | + "required": [ |
| 201 | + "schemaFormat" |
| 202 | + ], |
| 203 | + "properties": { |
| 204 | + "schemaFormat": { |
| 205 | + "enum": [ |
| 206 | + "application/schema+json;version=draft-07", |
| 207 | + "application/schema+yaml;version=draft-07" |
| 208 | + ] |
| 209 | + } |
| 210 | + } |
| 211 | + }, |
| 212 | + "then": { |
| 213 | + "properties": { |
| 214 | + "payload": { |
| 215 | + "$ref": "http://json-schema.org/draft-07/schema" |
| 216 | + } |
| 217 | + } |
| 218 | + } |
| 219 | + } |
| 220 | + ] |
146 | 221 | } |
147 | 222 | ] |
148 | 223 | } |
|
0 commit comments