Support `Predicate<RequestPath>>` in path API version resolver by siom79 · Pull Request #36398 · spring-projects/spring-framework

Choose a reason for hiding this comment

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

Overall looks good, but I think the predicate should be to confirm if the path has a version rather based on exclusion, i.e. true if it is a path with a version, and false otherwise.

That would reflect more specifically the purpose of levelling up to other resolvers in being able to detect presence vs absence.

If we ever decide to overlay that with exclusions by path at the top level across resolvers the two would be more contrasted.