|
260 | 260 | }
|
261 | 261 | },
|
262 | 262 | "additionalProperties": false,
|
263 |
| - "type": "object", |
264 |
| - "anyOf": [ |
265 |
| - { |
266 |
| - "required": [ |
267 |
| - "username" |
268 |
| - ] |
269 |
| - }, |
270 |
| - { |
271 |
| - "required": [ |
272 |
| - "id" |
273 |
| - ] |
274 |
| - } |
275 |
| - ] |
| 263 | + "type": "object" |
276 | 264 | },
|
277 | 265 | "FCACertificate": {
|
278 | 266 | "required": [
|
|
640 | 628 | "type": "boolean"
|
641 | 629 | },
|
642 | 630 | "service": {
|
643 |
| - "$schema": "http://json-schema.org/draft-04/schema#", |
644 | 631 | "$ref": "#/definitions/Service"
|
645 | 632 | },
|
646 | 633 | "snis": {
|
|
651 | 638 | },
|
652 | 639 | "sources": {
|
653 | 640 | "items": {
|
654 |
| - "$schema": "http://json-schema.org/draft-04/schema#", |
655 | 641 | "$ref": "#/definitions/CIDRPort"
|
656 | 642 | },
|
657 | 643 | "type": "array"
|
|
847 | 833 | "type": "string"
|
848 | 834 | },
|
849 | 835 | "upstream": {
|
850 |
| - "$schema": "http://json-schema.org/draft-04/schema#", |
851 | 836 | "$ref": "#/definitions/Upstream"
|
852 | 837 | },
|
853 | 838 | "weight": {
|
|
890 | 875 | "type": "string"
|
891 | 876 | },
|
892 | 877 | "healthchecks": {
|
893 |
| - "$schema": "http://json-schema.org/draft-04/schema#", |
894 | 878 | "$ref": "#/definitions/Healthcheck"
|
895 | 879 | },
|
896 | 880 | "host_header": {
|
|
1007 | 991 | },
|
1008 | 992 | "Info": {
|
1009 | 993 | "properties": {
|
| 994 | + "defaults": { |
| 995 | + "$schema": "http://json-schema.org/draft-04/schema#", |
| 996 | + "$ref": "#/definitions/KongDefaults" |
| 997 | + }, |
1010 | 998 | "select_tags": {
|
1011 | 999 | "items": {
|
1012 | 1000 | "type": "string"
|
|
1094 | 1082 | "additionalProperties": false,
|
1095 | 1083 | "type": "object"
|
1096 | 1084 | },
|
| 1085 | + "KongDefaults": { |
| 1086 | + "properties": { |
| 1087 | + "route": { |
| 1088 | + "$schema": "http://json-schema.org/draft-04/schema#", |
| 1089 | + "$ref": "#/definitions/Route" |
| 1090 | + }, |
| 1091 | + "service": { |
| 1092 | + "$schema": "http://json-schema.org/draft-04/schema#", |
| 1093 | + "$ref": "#/definitions/Service" |
| 1094 | + }, |
| 1095 | + "target": { |
| 1096 | + "$schema": "http://json-schema.org/draft-04/schema#", |
| 1097 | + "$ref": "#/definitions/Target" |
| 1098 | + }, |
| 1099 | + "upstream": { |
| 1100 | + "$schema": "http://json-schema.org/draft-04/schema#", |
| 1101 | + "$ref": "#/definitions/Upstream" |
| 1102 | + } |
| 1103 | + }, |
| 1104 | + "additionalProperties": false, |
| 1105 | + "type": "object" |
| 1106 | + }, |
1097 | 1107 | "MTLSAuth": {
|
1098 | 1108 | "required": [
|
1099 | 1109 | "id",
|
|
1285 | 1295 | },
|
1286 | 1296 | "sources": {
|
1287 | 1297 | "items": {
|
| 1298 | + "$schema": "http://json-schema.org/draft-04/schema#", |
1288 | 1299 | "$ref": "#/definitions/CIDRPort"
|
1289 | 1300 | },
|
1290 | 1301 | "type": "array"
|
|
1303 | 1314 | }
|
1304 | 1315 | },
|
1305 | 1316 | "additionalProperties": false,
|
1306 |
| - "type": "object", |
1307 |
| - "anyOf": [ |
1308 |
| - { |
1309 |
| - "required": [ |
1310 |
| - "name" |
1311 |
| - ] |
1312 |
| - }, |
1313 |
| - { |
1314 |
| - "required": [ |
1315 |
| - "id" |
1316 |
| - ] |
1317 |
| - } |
1318 |
| - ] |
| 1317 | + "type": "object" |
1319 | 1318 | },
|
1320 | 1319 | "SNI": {
|
1321 | 1320 | "properties": {
|
|
1350 | 1349 | "type": "array"
|
1351 | 1350 | },
|
1352 | 1351 | "client_certificate": {
|
| 1352 | + "$schema": "http://json-schema.org/draft-04/schema#", |
1353 | 1353 | "$ref": "#/definitions/Certificate"
|
1354 | 1354 | },
|
1355 | 1355 | "connect_timeout": {
|
|
1405 | 1405 | }
|
1406 | 1406 | },
|
1407 | 1407 | "additionalProperties": false,
|
1408 |
| - "type": "object", |
1409 |
| - "anyOf": [ |
1410 |
| - { |
1411 |
| - "required": [ |
1412 |
| - "name" |
1413 |
| - ] |
| 1408 | + "type": "object" |
| 1409 | + }, |
| 1410 | + "Target": { |
| 1411 | + "properties": { |
| 1412 | + "created_at": { |
| 1413 | + "type": "number" |
1414 | 1414 | },
|
1415 |
| - { |
1416 |
| - "required": [ |
1417 |
| - "id" |
1418 |
| - ] |
| 1415 | + "id": { |
| 1416 | + "type": "string" |
| 1417 | + }, |
| 1418 | + "tags": { |
| 1419 | + "items": { |
| 1420 | + "type": "string" |
| 1421 | + }, |
| 1422 | + "type": "array" |
| 1423 | + }, |
| 1424 | + "target": { |
| 1425 | + "type": "string" |
| 1426 | + }, |
| 1427 | + "upstream": { |
| 1428 | + "$ref": "#/definitions/Upstream" |
| 1429 | + }, |
| 1430 | + "weight": { |
| 1431 | + "type": "integer" |
1419 | 1432 | }
|
1420 |
| - ] |
| 1433 | + }, |
| 1434 | + "additionalProperties": false, |
| 1435 | + "type": "object" |
1421 | 1436 | },
|
1422 | 1437 | "Unhealthy": {
|
1423 | 1438 | "properties": {
|
|
1444 | 1459 | "type": "object"
|
1445 | 1460 | },
|
1446 | 1461 | "Upstream": {
|
1447 |
| - "required": [ |
1448 |
| - "name" |
1449 |
| - ], |
1450 | 1462 | "properties": {
|
1451 | 1463 | "algorithm": {
|
1452 | 1464 | "type": "string"
|
|
1476 | 1488 | "type": "string"
|
1477 | 1489 | },
|
1478 | 1490 | "healthchecks": {
|
| 1491 | + "$schema": "http://json-schema.org/draft-04/schema#", |
1479 | 1492 | "$ref": "#/definitions/Healthcheck"
|
1480 | 1493 | },
|
1481 | 1494 | "host_header": {
|
|
0 commit comments