You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an API is set to use url versioning, the listener auto prepends the version segment into the route config however, it doesn't check the route TYPE. If the route type is anything other than Segment, it will break the routing and mean the route will never match.
How to reproduce
Enable url versioning on a route.
Set it's route type to Literal
Expected behavior
Suggest either automatically changing the route type to Segment or throwing an exception stating that the route must already be a segment route type.
The text was updated successfully, but these errors were encountered:
Transferred this to the api-tools-admin repo, as this sort of check needs to happen during an admin operation.
Alternately, or potentially in addition to, we can add some functionality to api-tools-versioning to raise an exception when it encounters a non-Segment route.
The admin tool doesn't create routes which don't work; this happens if configuring manually and would also be an issue if you used the module as a stand alone so it definitely needs to raise an exception in the api-tools-versioning component.
Bug Report
Summary
When an API is set to use url versioning, the listener auto prepends the version segment into the route config however, it doesn't check the route TYPE. If the route type is anything other than Segment, it will break the routing and mean the route will never match.
How to reproduce
Expected behavior
Suggest either automatically changing the route type to Segment or throwing an exception stating that the route must already be a segment route type.
The text was updated successfully, but these errors were encountered: