Skip to content

Commit

Permalink
Revert "[TT-13422] Do not allow empty string in upstream auth configu…
Browse files Browse the repository at this point in the history
…ration strings" (#6702)

Reverts #6699
temporary revert with common change for AuthSource

(cherry picked from commit f0fcb3f)
  • Loading branch information
jeffy-mathew authored and Tyk Bot committed Nov 14, 2024
1 parent adb1f25 commit 4b4f01a
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions apidef/oas/schema/x-tyk-api-gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"type": "boolean"
},
"name": {
"$ref": "#/definitions/X-Tyk-NonEmptyString"
"type": "string"
}
},
"required": [
Expand Down Expand Up @@ -2023,7 +2023,7 @@
"type": "boolean"
},
"header": {
"$ref": "#/definitions/X-Tyk-AuthSource"
"$ref": "#/definitions/X-Tyk-UpstreamAuthSource"
},
"username": {
"$ref": "#/definitions/X-Tyk-NonEmptyString"
Expand Down Expand Up @@ -2077,7 +2077,7 @@
]
},
"header": {
"$ref": "#/definitions/X-Tyk-AuthSource"
"$ref": "#/definitions/X-Tyk-UpstreamAuthSource"
},
"extraMetadata": {
"type": [
Expand Down Expand Up @@ -2117,7 +2117,7 @@
"$ref": "#/definitions/X-Tyk-NonEmptyString"
},
"header": {
"$ref": "#/definitions/X-Tyk-AuthSource"
"$ref": "#/definitions/X-Tyk-UpstreamAuthSource"
},
"extraMetadata": {
"type": [
Expand All @@ -2143,6 +2143,17 @@
"X-Tyk-NonEmptyString": {
"type": "string",
"pattern": "\\S+"
},
"X-Tyk-UpstreamAuthSource": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"name": {
"type": "string"
}
}
}
}
}

0 comments on commit 4b4f01a

Please sign in to comment.