Fix PathVariable pattern with * #3142
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a split, in OAS3 path builder, for Spring's PathVariable {*path} Pattern
Description
Adds split on {*path} without escaping special characters to allow slash as in url endpoints
Motivation and Context
With Spring you can define a path pattern "/other/path/{*extra}" to match multiple segments at the end of a path.
So {*extra} might contains "other/path/segments" see https://spring.io/blog/2020/06/30/url-matching-with-pathpattern-in-spring-mvc for more info.
How Has This Been Tested?
Tested using this https://github.com/lucarota/file-server spring application as backend
Screenshots (if appropriate):
Types of changes
package.json
)Checklist: