Skip to content

Commit

Permalink
make targets required when load balancing is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
pvormste committed Feb 4, 2025
1 parent bcdfacb commit 82f8b2e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion apidef/oas/schema/x-tyk-api-gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@
"$ref": "#/definitions/X-Tyk-LoadBalancing"
}
},
"oneOf": [
"anyOf": [
{
"required": ["url"]
},
Expand Down Expand Up @@ -2286,6 +2286,23 @@
},
"required": [
"enabled"
],
"allOf": [
{
"if": {
"properties": {
"enabled": { "const": true }
}
},
"then": {
"properties": {
"targets": {
"minItems": 1
}
},
"required": ["targets"]
}
}
]
},
"X-Tyk-LoadBalancingTarget": {
Expand Down

0 comments on commit 82f8b2e

Please sign in to comment.