Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffy-mathew committed Nov 14, 2024
1 parent 012e172 commit 673eb4a
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions apidef/oas/schema/x-tyk-api-gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -2023,13 +2023,13 @@
"type": "boolean"
},
"header": {
"$ref": "#/definitions/X-Tyk-AuthSource"
"$ref": "#/definitions/X-Tyk-UpstreamAuthSource"
},
"username": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"password": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
}
},
"required": [
Expand Down Expand Up @@ -2062,13 +2062,13 @@
"type": "object",
"properties": {
"clientId": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"clientSecret": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"tokenUrl": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"scopes": {
"type": [
Expand All @@ -2077,7 +2077,7 @@
]
},
"header": {
"$ref": "#/definitions/X-Tyk-AuthSource"
"$ref": "#/definitions/X-Tyk-UpstreamAuthSource"
},
"extraMetadata": {
"type": [
Expand All @@ -2096,13 +2096,13 @@
"type": "object",
"properties": {
"clientId": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"clientSecret": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"tokenUrl": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"scopes": {
"type": [
Expand All @@ -2111,13 +2111,13 @@
]
},
"username": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"password": {
"type": "string"
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"header": {
"$ref": "#/definitions/X-Tyk-AuthSource"
"$ref": "#/definitions/X-Tyk-UpstreamAuthSource"
},
"extraMetadata": {
"type": [
Expand All @@ -2138,7 +2138,21 @@
"enabled",
"allowedAuthorizeTypes"
]
},
"X-Tyk-NonEmptyString": {
"type": "string",
"pattern": "\\S+"
},
"X-Tyk-UpstreamAuthSource": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"name": {
"type": "string"
}
}
}

}
}

0 comments on commit 673eb4a

Please sign in to comment.