-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TT-10358] Add fallback to default version OAS support #5679
Conversation
Apply Sweep Rules to your PR?
|
e42f41a
to
a2a3f4e
Compare
73b8f92
to
d526ee4
Compare
d526ee4
to
e6154a7
Compare
API Changes --- prev.txt 2023-10-30 07:17:56.981527920 +0000
+++ current.txt 2023-10-30 07:17:52.165385089 +0000
@@ -3857,6 +3857,10 @@
Versions []VersionToID `bson:"versions" json:"versions"` // required
// StripVersioningData is a boolean flag, if set to `true`, the API responses will be stripped of versioning data.
StripVersioningData bool `bson:"stripVersioningData,omitempty" json:"stripVersioningData,omitempty"`
+ // FallbackToDefault controls the behaviour of Tyk when a versioned API is called with a nonexistent version name.
+ // If set to `true` then the default API version will be invoked; if set to `false` Tyk will return an HTTP 404
+ // `This API version does not seem to exist` error in this scenario.
+ FallbackToDefault bool `bson:"fallbackToDefault,omitempty" json:"fallbackToDefault,omitempty"`
}
Versioning holds configuration for API versioning.
|
API tests result: success ✅ |
1f1f3e3
to
17707a8
Compare
17707a8
to
39efb84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested rewording of the GoDocs comment
99a531b
to
f138f07
Compare
f138f07
to
576fa89
Compare
576fa89
to
3430ca4
Compare
Kudos, SonarCloud Quality Gate passed! |
API tests result: success ✅ |
API tests result: success ✅ |
API tests result: success ✅ |
API tests result: success ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - looks good.
/release to release-5.2 |
Working on it! Note that it can take a few minutes. |
parent ticket: https://tyktech.atlassian.net/browse/TT-9901 subticket: https://tyktech.atlassian.net/browse/TT-10358 (cherry picked from commit 7c09214)
@furkansenharputlu Succesfully merged PR |
…S support (#5679) [TT-10358] Add fallback to default version OAS support (#5679) parent ticket: https://tyktech.atlassian.net/browse/TT-9901 subticket: https://tyktech.atlassian.net/browse/TT-10358
parent ticket: https://tyktech.atlassian.net/browse/TT-9901
subticket: https://tyktech.atlassian.net/browse/TT-10358