Add defaultVersion to set of supported versions

Closes gh-35755
This commit is contained in:
rstoyanchev
2025-11-11 12:28:28 +00:00
parent 7555d0e489
commit 721c40b5c5
4 changed files with 38 additions and 16 deletions
@@ -90,6 +90,10 @@ public class DefaultApiVersionStrategy implements ApiVersionStrategy {
this.detectSupportedVersions = detectSupportedVersions;
this.supportedVersionPredicate = initSupportedVersionPredicate(supportedVersionPredicate);
this.deprecationHandler = deprecationHandler;
if (defaultVersion != null) {
addSupportedVersion(defaultVersion);
}
}
private Predicate<Comparable<?>> initSupportedVersionPredicate(@Nullable Predicate<Comparable<?>> predicate) {