Skip to content

Commit

Permalink
[TT-5012] add schema pattern for domain name validation (#5975)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7215ff6)
  • Loading branch information
jeffy-mathew authored and Tyk Bot committed Feb 1, 2024
1 parent 3de6f56 commit 32f0bf5
Showing 1 changed file with 86 additions and 2 deletions.
88 changes: 86 additions & 2 deletions apidef/oas/schema/x-tyk-api-gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"type": "object",
"properties": {
"domain": {
"type": "string"
"$ref": "#/definitions/X-Tyk-DomainDef"
},
"certificate": {
"type": "string"
Expand Down Expand Up @@ -132,7 +132,7 @@
"type": "object",
"properties": {
"domain": {
"type": "string"
"$ref": "#/definitions/X-Tyk-DomainDef"
},
"publicKeys": {
"type": "array",
Expand Down Expand Up @@ -1344,6 +1344,90 @@
"name",
"value"
]
<<<<<<< HEAD
=======
},
"X-Tyk-DetailedActivityLogs": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"X-Tyk-CircuitBreaker": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 1,
"multipleOf": 0.01
},
"sampleSize": {
"type": "integer",
"minimum": 0
},
"coolDownPeriod": {
"type": "integer",
"minimum": 0
},
"halfOpened": {
"type": "boolean"
}
},
"required": [
"enabled",
"threshold",
"sampleSize",
"coolDownPeriod",
"halfOpened"
]
},
"X-Tyk-RateLimit": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"rate": {
"type": "number"
},
"per": {
"type": "string",
"pattern": "^(\\d+h)?(\\d+m)?(\\d+s)?$"
}
},
"required": [
"enabled",
"rate",
"per"
]
},
"X-Tyk-DetailedTracing": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
]
},
"X-Tyk-UInt": {
"type": "integer",
"minimum": 0
},
"X-Tyk-DomainDef": {
"type": "string",
"pattern": "^([*a-zA-Z0-9-]+(\\.[*a-zA-Z0-9-]+)*)(:\\d+)?$"
>>>>>>> 7215ff650... [TT-5012] add schema pattern for domain name validation (#5975)
}
}
}

0 comments on commit 32f0bf5

Please sign in to comment.