Skip to content

allow different path param names across API versions#1567

Open
sunshowers wants to merge 2 commits intomainfrom
sunshowers/spr/allow-different-path-param-names-across-api-versions
Open

allow different path param names across API versions#1567
sunshowers wants to merge 2 commits intomainfrom
sunshowers/spr/allow-different-path-param-names-across-api-versions

Conversation

@sunshowers
Copy link
Contributor

Across API versions we now allow path parameters to have different names.

Within the same API version, we continue to require them to be named the same for consistency.

Fixes #1566.

Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Comment on lines -679 to -683
Some(HttpRouterEdges::VariableRest(varname, node)) => {
Box::new(std::iter::once((
PathSegment::VarnameSegment(varname.clone()),
node,
)))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that this should have been VarnameWildcard -- fixed and included a test for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dropshot does not allow you to rename path variables across versions

1 participant