Spring Boot 3.5.x line (built on Spring Boot 3.5.16).
⚠️ Changes you may notice
- Newly required properties (#3360, #3361): the
PagedModel/PageMetadataproperties and theamount/currencyproperties ofMonetaryAmountare now marked as required, as they are always serialized. Generated clients will see them as non-nullable. - Scalar 0.6 (#3359): upgraded to 0.6.83. The first tag is now open by default, and model links changed from
#model/nameto#models/Name. - Scalar's standalone integration (#3387): with the Swagger UI or API-only starters, Scalar's own auto-configuration is no longer disabled by springdoc. If you have
com.scalar.mavenon the classpath and don't want it, setscalar.enabled=false.
New
- Opt-in nullability for Java models (#3382):
springdoc.model-converters.java-nullable-property-customizer.enabled=truemarks properties annotated with@Nullable(JSpecify, Spring, JSR-305) as nullable, including$refandoneOfproperties, without changing shared components. - Polymorphic
oneOfas reusable components (#3390):springdoc.model-converters.polymorphic-converter.one-of-as-ref=true, with the name suffix set byspringdoc.model-converters.polymorphic-converter.one-of-ref-suffix(Variantby default). ParameterCustomizercan read type-use annotations, including insideOptional<@MyAnnotation Foo>(#3370).
Fixed
@ResponseStatuson a controller class is applied to its operations (#3352).- An injected
WebSessionis no longer documented as a query parameter in WebFlux (#3355). - The application no longer fails to start with Spring HATEOAS on the classpath but no
LinkRelationProviderbean (#3364). WebAsyncTaskreturn types are unwrapped (#3368).- A JSpecify
@Nullableon a controller parameter makes its schema nullable (#3377). - Nullable Kotlin properties described by a
oneOf(e.g. sealed classes) are documented as nullable (#3381). - Gradle builds no longer lift Jackson 2 above the version managed by Spring Boot (#3373).
Dependencies
swagger-ui 5.34.0 · Scalar 0.6.83 · Spring Cloud Function 4.2.4 · commons-lang3 3.21.0
Thanks to all the contributors of this release: @MaxFreedomPollard, @kdelay, @dpkass, @anupamchaubey, @Mattias-Sehlstedt, @Naresh7175, @ys0v9, @sharanggupta, @itd-sw, @Tework123, @awinishere.