Spring Boot 3.5.x line (built on Spring Boot 3.5.16).
⚠️ Changes you may notice
- Spring Data REST (#3429): an association to an entity without an exported repository uses the
<Name>Responseschema consistently, also when it is nullable, and an entity whose@Schema(name)differs from its class name gets its associations filtered as well.
New
requiredproperties ofkotlinx.serialization@Serializableclasses are derived whenjackson-module-kotlinis absent (#3433). Disable withspringdoc.model-converters.kotlinx-serialization-required-property-customizer.enabled=false.- An application can override the swagger-ui webjar version: springdoc-openapi serves the version found on the classpath, without
springdoc.swagger-ui.version.
Fixed
ArrayNodeandTextNodeare documented as an array and a string (#3431).- A subtype keeps its
allOfreference to its polymorphic parent when a controller repeats an annotation of its interface, such as@Valid(#3393). - OpenAPI 3.1 schemas are cloned correctly when swagger-core resolved a schema before springdoc-openapi configured its mapper (#3395).
- A property-level
@Schema(oneOf)narrows only its own subtypes (#3398). - A nullable Kotlin property renamed with
@JsonPropertyor@JsonNamingis marked nullable (#3399). - The deprecated annotations registry is thread safe (#3402).
- Validation constraints are documented without Hibernate Validator on the classpath (#3405).
Security
- Vulnerabilities in the DOMPurify bundled with swagger-ui (GHSA-cg2g-xh64-v4q7, GHSA-mrv2-3pqr-j5jr, GHSA-c6gr-qvv4-5v3f), addressed by upgrading swagger-ui to 5.35.1 (DOMPurify 3.4.17).
Dependencies
Spring Boot 3.5.16 · swagger-core 2.2.55 · swagger-ui 5.35.1 · Scalar 0.8.0 · Spring Cloud Function 4.3.4
Thanks to all the contributors of this release: @kuglo, @jochenberger, @Shubchynskyi, @aswinalfarizi, @gwr0-0.