Skip to content

fix: _isSetType now detects indirect Set implementations - #5265

Merged
ewaostrowska merged 1 commit into
swagger-api:masterfrom
vpelikh:fix/isSetType-indirect-Set-implementations
Aug 26, 2026
Merged

ewaostrowska merged 1 commit into
swagger-api:masterfrom
vpelikh:fix/isSetType-indirect-Set-implementations

Conversation

@vpelikh

@vpelikh vpelikh commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Problem

_isSetType in AbstractModelConverter failed to recognize indirect Set implementations such as LinkedHashSet, HashSet, and TreeSet.

The old implementation only matched an exact Set.class equality check, plus a direct interface scan via Class.getInterfaces(). Because getInterfaces() only returns directly implemented interfaces, subclasses that inherit Set behavior through a parent class (for example a custom class extending AbstractSet or a collection extending a concrete Set) were not detected, so uniqueItems was not set on the generated schema.

Change

  • Replaced Set.class.equals(cls) with Set.class.isAssignableFrom(cls) in protected boolean _isSetType(Class<?> cls).
  • Preserved the existing scala Set detection (checked via direct interfaces) to avoid pulling the scala runtime dependency.
  • Made the null case explicit (returns false).

Tests

Added IsSetTypeTest with 7 test cases:

  • null -> not a Set
  • Set interface -> Set
  • HashSet -> Set
  • LinkedHashSet -> Set
  • TreeSet -> Set
  • non-Set collections (List, ArrayList) -> not a Set
  • non-collection types (String, Integer, Map) -> not a Set

All 7 tests pass.

@ewaostrowska ewaostrowska added the backlog label Aug 13, 2026 — with Claude
Replace Set.class.equals(cls) with Set.class.isAssignableFrom(cls) so that types like LinkedHashSet, HashSet, and TreeSet are correctly identified as Set types for uniqueItems schema generation.

Previously only exact Set.class matches were caught, plus direct interface checks via getInterfaces() which miss inherited Set implementations.

Add IsSetTypeTest with 7 test cases covering null, the Set interface, HashSet, LinkedHashSet, TreeSet, non-Set collections, and non-collection types.
@ewaostrowska
ewaostrowska force-pushed the fix/isSetType-indirect-Set-implementations branch from bcd59f3 to cdd3d25 Compare August 26, 2026 09:31
@ewaostrowska

Copy link
Copy Markdown
Contributor

Thank you @vpelikh for providing this PR, looks like it should help with the Set classification

@ewaostrowska
ewaostrowska merged commit c7d7736 into swagger-api:master Aug 26, 2026
7 checks passed
@vpelikh
vpelikh deleted the fix/isSetType-indirect-Set-implementations branch August 26, 2026 13:26
vpelikh pushed a commit to vpelikh/swagger-core that referenced this pull request Aug 28, 2026
Resolve conflicts from upstream 2.x sync onto the vpelikh 4.x fork:

- .github/dependabot.yml: keep fork 'master' target-branch; adopt upstream
  'allow' rules (semver-minor/patch plus dependency-check-maven major).
- pom.xml: keep fork's 4.x dependency versions (dependency-check-maven
  13.0.0, slf4j 2.0.18, jetty 12.1.12, etc.); drop upstream's
  commons-lang-version (commons-lang3 removed from the fork).
- .github/workflows/prepare-release.yml and modules/swagger-project-jakarta/
  pom.xml: retain fork deletions (already removed on the fork).

Upstream code fix '_isSetType now detects indirect Set implementations'
(swagger-api#5265) is auto-merged into AbstractModelConverter.
bnasslahsen added a commit to springdoc/springdoc-openapi that referenced this pull request Sep 6, 2026
swagger-core now detects indirect Set implementations
(swagger-api/swagger-core#5265), so a `LinkedHashSet` property is
described with `uniqueItems: true`. Adjusted the Kotlin app3 expectation
accordingly.

The matching swagger-ui 5.32.15 bump is not included: org.webjars:swagger-ui
is still only published up to 5.32.14 on Maven Central.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
bnasslahsen added a commit to springdoc/springdoc-openapi that referenced this pull request Sep 6, 2026
swagger-core now detects indirect Set implementations
(swagger-api/swagger-core#5265), so a `LinkedHashSet` property is
described with `uniqueItems: true`. Adjusted the Kotlin app3 expectation
accordingly.

The matching swagger-ui 5.32.15 bump is not included: org.webjars:swagger-ui
is still only published up to 5.32.14 on Maven Central.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
github-merge-queue Bot pushed a commit to BSStudio/robonaut-server that referenced this pull request Sep 6, 2026
…webflux-ui to v3.1.1 (#1484)

This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Adoption](https://docs.renovatebot.com/merge-confidence/) |
[Passing](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|---|---|
|
[org.springdoc:springdoc-openapi-starter-webflux-ui](https://springdoc.org/)
([source](https://redirect.github.com/springdoc/springdoc-openapi)) |
`3.1.0` → `3.1.1` |
![age](https://developer.mend.io/api/mc/badges/age/maven/org.springdoc:springdoc-openapi-starter-webflux-ui/3.1.1?slim=true)
|
![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.springdoc:springdoc-openapi-starter-webflux-ui/3.1.1?slim=true)
|
![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.springdoc:springdoc-openapi-starter-webflux-ui/3.1.0/3.1.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.springdoc:springdoc-openapi-starter-webflux-ui/3.1.0/3.1.1?slim=true)
|

---

### Release Notes

<details>
<summary>springdoc/springdoc-openapi
(org.springdoc:springdoc-openapi-starter-webflux-ui)</summary>

###
[`v3.1.1`](https://redirect.github.com/springdoc/springdoc-openapi/blob/HEAD/CHANGELOG.md#311---2026-09-06)

##### Security

-
[GHSA-6f5m-mhjg-qwxq](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-6f5m-mhjg-qwxq)
– MCP tool callbacks do not encode path parameters, allowing request
retargeting
-
[GHSA-4v2q-56v7-2cpw](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-4v2q-56v7-2cpw)
– MCP transport, admin and dashboard endpoints are exposed by default
-
[GHSA-m4cg-mhpg-rh2r](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-m4cg-mhpg-rh2r)
– MCP audit events record credentials and request/response bodies
without redaction
-
[GHSA-5f9r-4mc4-qh3c](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-5f9r-4mc4-qh3c)
– Unbounded MCP pending-confirmation store allows memory exhaustion
-
[GHSA-jcgg-59c8-w4wh](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-jcgg-59c8-w4wh)
– MCP request context in a `ThreadLocal` can leak headers between
concurrent WebFlux requests
-
[GHSA-rhhx-6j8h-8cvw](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-rhhx-6j8h-8cvw)
– Unbounded per-locale OpenAPI cache allows memory exhaustion via
`Accept-Language`
-
[GHSA-c925-vm88-mpp9](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-c925-vm88-mpp9)
– Scalar starters trust client-supplied forwarded headers and render
from a shared mutable bean
-
[CVE-2026-75838](https://redirect.github.com/advisories/GHSA-748c-f84h-hp2v)
– Cross-site scripting in the DOMPurify bundled with swagger-ui,
addressed by upgrading swagger-ui to **5.32.14**

##### Added

-
[#&#8203;3340](https://redirect.github.com/springdoc/springdoc-openapi/issues/3340)
– Describe `JsonNullable` values without their Java wrapper
-
[#&#8203;3325](https://redirect.github.com/springdoc/springdoc-openapi/issues/3325)
– Manage the swagger artifacts in `springdoc-openapi-bom`, so that
modules holding only the annotations stay in lockstep
-
[#&#8203;3321](https://redirect.github.com/springdoc/springdoc-openapi/issues/3321)
– Add `springdoc.login-endpoint.username-example` and
`springdoc.login-endpoint.password-example` to document the Spring
Security login endpoint

##### Changed

- **MCP is now opt-in.** Set `springdoc.ai.mcp.enabled=true`, and
`springdoc.ai.mcp.dashboard-enabled=true` for the dashboard
- **The Scalar starters no longer register forwarded-header handling.**
Set `server.forward-headers-strategy=framework` (or `native`) behind a
trusted proxy
- Add `springdoc.cache.max-entries` (default `100`) to bound the
per-locale OpenAPI cache
- Add `springdoc.ai.mcp.audit.redact` (default `true`) to mask secrets
in MCP audit events
- Document that the MCP approval flow is a confirmation step, not an
authorization control
- Document the security policy and the release versioning scheme
-
[#&#8203;3351](https://redirect.github.com/springdoc/springdoc-openapi/issues/3351)
– `java.time.Duration`, `LocalTime` and `OffsetTime` are now resolved by
swagger-core instead of being forced to a bare `string`, so they carry a
`format` (`duration` and `partial-time` respectively for the first two)
- A property whose type only implements `Set` indirectly
(`LinkedHashSet`, `TreeSet`, …) is now described with `uniqueItems:
true`, following
[swagger-api/swagger-core#5265](https://redirect.github.com/swagger-api/swagger-core/pull/5265)
- Upgrade swagger-core to version **2.2.55**
- Upgrade swagger-ui to version **5.32.14**

##### Fixed

-
[#&#8203;3328](https://redirect.github.com/springdoc/springdoc-openapi/issues/3328),
[#&#8203;3337](https://redirect.github.com/springdoc/springdoc-openapi/issues/3337)
– `/v3/api-docs` fails with a `NullPointerException` when spring-hateoas
is on the classpath without `HateoasProperties`
-
[#&#8203;3314](https://redirect.github.com/springdoc/springdoc-openapi/issues/3314)
– `Json Processing Exception occurred` is logged for every constrained
parameter whose schema is not a `JsonSchema`
-
[#&#8203;3317](https://redirect.github.com/springdoc/springdoc-openapi/issues/3317)
– An injected `HttpHeaders` parameter is described as a schema
-
[#&#8203;3332](https://redirect.github.com/springdoc/springdoc-openapi/issues/3332)
– The properties a Kotlin entity inherits from an `@Embeddable` are
missing from the Spring Data REST schemas
-
[#&#8203;3320](https://redirect.github.com/springdoc/springdoc-openapi/issues/3320)
– `@Order` and `Ordered` ignored when applying customizers
-
[#&#8203;3319](https://redirect.github.com/springdoc/springdoc-openapi/issues/3319)
– A `Page` nested in another schema is not replaced by `PagedModel`
-
[#&#8203;3313](https://redirect.github.com/springdoc/springdoc-openapi/issues/3313)
– Springdoc auto-configurations rely on unspecified auto-configuration
ordering
-
[#&#8203;3331](https://redirect.github.com/springdoc/springdoc-openapi/issues/3331)
– Validation annotations declared inside `Optional` parameters are
dropped
-
[#&#8203;3322](https://redirect.github.com/springdoc/springdoc-openapi/issues/3322)
– Validation annotations on a container's type argument leak between
parameters
-
[#&#8203;3315](https://redirect.github.com/springdoc/springdoc-openapi/issues/3315)
– An OAS 3.1 `JsonSchema` cannot be cloned through JSON
-
[#&#8203;3300](https://redirect.github.com/springdoc/springdoc-openapi/issues/3300)
– TYPE\_USE annotations on `@ParameterObject` fields are not passed
along
-
[#&#8203;3341](https://redirect.github.com/springdoc/springdoc-openapi/issues/3341)
– Stabilize Spring Data `Sort` and `Pageable` schema property order
-
[#&#8203;3338](https://redirect.github.com/springdoc/springdoc-openapi/issues/3338)
– Kotlin nullability interpretation of the `Any?` type
-
[#&#8203;3136](https://redirect.github.com/springdoc/springdoc-openapi/issues/3136)
– A Spring Data REST association to a non-exported entity expands its
`@EmbeddedId` and `@MapsId` fields recursively in the response schemas
- The Spring Data REST response post-processing rewrote an association
property in place, so the `…Response` refs could leak into the schema
shared with the request body representation

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/Dublin)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - Only on Sunday and Saturday (`* * * * 0,6`)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/BSStudio/robonaut-server).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC42MS4zIiwidXBkYXRlZEluVmVyIjoiNDQuNjEuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
apereocas-bot added a commit to apereo/cas that referenced this pull request Sep 7, 2026
…starter-webmvc-ui to v3.1.1

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [org.springdoc:springdoc-openapi-starter-webmvc-ui](https://springdoc.org/) ([source](https://redirect.github.com/springdoc/springdoc-openapi)) | dependencies | patch | `3.1.0` → `3.1.1` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>springdoc/springdoc-openapi (org.springdoc:springdoc-openapi-starter-webmvc-ui)</summary>

### [`v3.1.1`](https://redirect.github.com/springdoc/springdoc-openapi/blob/HEAD/CHANGELOG.md#311---2026-09-06)

##### Security

- [GHSA-6f5m-mhjg-qwxq](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-6f5m-mhjg-qwxq) – MCP tool callbacks do not encode path parameters, allowing request retargeting
- [GHSA-4v2q-56v7-2cpw](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-4v2q-56v7-2cpw) – MCP transport, admin and dashboard endpoints are exposed by default
- [GHSA-m4cg-mhpg-rh2r](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-m4cg-mhpg-rh2r) – MCP audit events record credentials and request/response bodies without redaction
- [GHSA-5f9r-4mc4-qh3c](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-5f9r-4mc4-qh3c) – Unbounded MCP pending-confirmation store allows memory exhaustion
- [GHSA-jcgg-59c8-w4wh](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-jcgg-59c8-w4wh) – MCP request context in a `ThreadLocal` can leak headers between concurrent WebFlux requests
- [GHSA-rhhx-6j8h-8cvw](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-rhhx-6j8h-8cvw) – Unbounded per-locale OpenAPI cache allows memory exhaustion via `Accept-Language`
- [GHSA-c925-vm88-mpp9](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-c925-vm88-mpp9) – Scalar starters trust client-supplied forwarded headers and render from a shared mutable bean
- [CVE-2026-75838](https://redirect.github.com/advisories/GHSA-748c-f84h-hp2v) – Cross-site scripting in the DOMPurify bundled with swagger-ui, addressed by upgrading swagger-ui to **5.32.14**

##### Added

- [#&#8203;3340](https://redirect.github.com/springdoc/springdoc-openapi/issues/3340) – Describe `JsonNullable` values without their Java wrapper
- [#&#8203;3325](https://redirect.github.com/springdoc/springdoc-openapi/issues/3325) – Manage the swagger artifacts in `springdoc-openapi-bom`, so that modules holding only the annotations stay in lockstep
- [#&#8203;3321](https://redirect.github.com/springdoc/springdoc-openapi/issues/3321) – Add `springdoc.login-endpoint.username-example` and `springdoc.login-endpoint.password-example` to document the Spring Security login endpoint

##### Changed

- **MCP is now opt-in.** Set `springdoc.ai.mcp.enabled=true`, and `springdoc.ai.mcp.dashboard-enabled=true` for the dashboard
- **The Scalar starters no longer register forwarded-header handling.** Set `server.forward-headers-strategy=framework` (or `native`) behind a trusted proxy
- Add `springdoc.cache.max-entries` (default `100`) to bound the per-locale OpenAPI cache
- Add `springdoc.ai.mcp.audit.redact` (default `true`) to mask secrets in MCP audit events
- Document that the MCP approval flow is a confirmation step, not an authorization control
- Document the security policy and the release versioning scheme
- [#&#8203;3351](https://redirect.github.com/springdoc/springdoc-openapi/issues/3351) – `java.time.Duration`, `LocalTime` and `OffsetTime` are now resolved by swagger-core instead of being forced to a bare `string`, so they carry a `format` (`duration` and `partial-time` respectively for the first two)
- A property whose type only implements `Set` indirectly (`LinkedHashSet`, `TreeSet`, …) is now described with `uniqueItems: true`, following [swagger-api/swagger-core#5265](https://redirect.github.com/swagger-api/swagger-core/pull/5265)
- Upgrade swagger-core to version **2.2.55**
- Upgrade swagger-ui to version **5.32.14**

##### Fixed

- [#&#8203;3328](https://redirect.github.com/springdoc/springdoc-openapi/issues/3328), [#&#8203;3337](https://redirect.github.com/springdoc/springdoc-openapi/issues/3337) – `/v3/api-docs` fails with a `NullPointerException` when spring-hateoas is on the classpath without `HateoasProperties`
- [#&#8203;3314](https://redirect.github.com/springdoc/springdoc-openapi/issues/3314) – `Json Processing Exception occurred` is logged for every constrained parameter whose schema is not a `JsonSchema`
- [#&#8203;3317](https://redirect.github.com/springdoc/springdoc-openapi/issues/3317) – An injected `HttpHeaders` parameter is described as a schema
- [#&#8203;3332](https://redirect.github.com/springdoc/springdoc-openapi/issues/3332) – The properties a Kotlin entity inherits from an `@Embeddable` are missing from the Spring Data REST schemas
- [#&#8203;3320](https://redirect.github.com/springdoc/springdoc-openapi/issues/3320) – `@Order` and `Ordered` ignored when applying customizers
- [#&#8203;3319](https://redirect.github.com/springdoc/springdoc-openapi/issues/3319) – A `Page` nested in another schema is not replaced by `PagedModel`
- [#&#8203;3313](https://redirect.github.com/springdoc/springdoc-openapi/issues/3313) – Springdoc auto-configurations rely on unspecified auto-configuration ordering
- [#&#8203;3331](https://redirect.github.com/springdoc/springdoc-openapi/issues/3331) – Validation annotations declared inside `Optional` parameters are dropped
- [#&#8203;3322](https://redirect.github.com/springdoc/springdoc-openapi/issues/3322) – Validation annotations on a container's type argument leak between parameters
- [#&#8203;3315](https://redirect.github.com/springdoc/springdoc-openapi/issues/3315) – An OAS 3.1 `JsonSchema` cannot be cloned through JSON
- [#&#8203;3300](https://redirect.github.com/springdoc/springdoc-openapi/issues/3300) – TYPE\_USE annotations on `@ParameterObject` fields are not passed along
- [#&#8203;3341](https://redirect.github.com/springdoc/springdoc-openapi/issues/3341) – Stabilize Spring Data `Sort` and `Pageable` schema property order
- [#&#8203;3338](https://redirect.github.com/springdoc/springdoc-openapi/issues/3338) – Kotlin nullability interpretation of the `Any?` type
- [#&#8203;3136](https://redirect.github.com/springdoc/springdoc-openapi/issues/3136) – A Spring Data REST association to a non-exported entity expands its `@EmbeddedId` and `@MapsId` fields recursively in the response schemas
- The Spring Data REST response post-processing rewrote an association property in place, so the `…Response` refs could leak into the schema shared with the request body representation

</details>

---

### Configuration

📅 **Schedule**: (in timezone America/Los_Angeles)

- Branch creation
  - "after 5pm,before 9am"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC42NS41IiwidXBkYXRlZEluVmVyIjoiNDQuNjUuNSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJCb3QiLCJSZW5vdmF0ZSJdfQ==-->
mmoayyed pushed a commit to mmoayyed/cas that referenced this pull request Sep 7, 2026
…starter-webmvc-ui to v3.1.1

This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|---|---|
| [org.springdoc:springdoc-openapi-starter-webmvc-ui](https://springdoc.org/) ([source](https://redirect.github.com/springdoc/springdoc-openapi)) | `3.1.0` → `3.1.1` | ![age](https://developer.mend.io/api/mc/badges/age/maven/org.springdoc:springdoc-openapi-starter-webmvc-ui/3.1.1?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.springdoc:springdoc-openapi-starter-webmvc-ui/3.1.1?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.springdoc:springdoc-openapi-starter-webmvc-ui/3.1.0/3.1.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.springdoc:springdoc-openapi-starter-webmvc-ui/3.1.0/3.1.1?slim=true) |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>springdoc/springdoc-openapi (org.springdoc:springdoc-openapi-starter-webmvc-ui)</summary>

### [`v3.1.1`](https://redirect.github.com/springdoc/springdoc-openapi/blob/HEAD/CHANGELOG.md#311---2026-09-06)

[Compare Source](https://redirect.github.com/springdoc/springdoc-openapi/compare/v3.1.0...v3.1.1)

##### Security

- [GHSA-6f5m-mhjg-qwxq](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-6f5m-mhjg-qwxq) – MCP tool callbacks do not encode path parameters, allowing request retargeting
- [GHSA-4v2q-56v7-2cpw](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-4v2q-56v7-2cpw) – MCP transport, admin and dashboard endpoints are exposed by default
- [GHSA-m4cg-mhpg-rh2r](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-m4cg-mhpg-rh2r) – MCP audit events record credentials and request/response bodies without redaction
- [GHSA-5f9r-4mc4-qh3c](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-5f9r-4mc4-qh3c) – Unbounded MCP pending-confirmation store allows memory exhaustion
- [GHSA-jcgg-59c8-w4wh](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-jcgg-59c8-w4wh) – MCP request context in a `ThreadLocal` can leak headers between concurrent WebFlux requests
- [GHSA-rhhx-6j8h-8cvw](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-rhhx-6j8h-8cvw) – Unbounded per-locale OpenAPI cache allows memory exhaustion via `Accept-Language`
- [GHSA-c925-vm88-mpp9](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-c925-vm88-mpp9) – Scalar starters trust client-supplied forwarded headers and render from a shared mutable bean
- [CVE-2026-75838](https://redirect.github.com/advisories/GHSA-748c-f84h-hp2v) – Cross-site scripting in the DOMPurify bundled with swagger-ui, addressed by upgrading swagger-ui to **5.32.14**

##### Added

- [#&apereo#8203;3340](https://redirect.github.com/springdoc/springdoc-openapi/issues/3340) – Describe `JsonNullable` values without their Java wrapper
- [#&apereo#8203;3325](https://redirect.github.com/springdoc/springdoc-openapi/issues/3325) – Manage the swagger artifacts in `springdoc-openapi-bom`, so that modules holding only the annotations stay in lockstep
- [#&apereo#8203;3321](https://redirect.github.com/springdoc/springdoc-openapi/issues/3321) – Add `springdoc.login-endpoint.username-example` and `springdoc.login-endpoint.password-example` to document the Spring Security login endpoint

##### Changed

- **MCP is now opt-in.** Set `springdoc.ai.mcp.enabled=true`, and `springdoc.ai.mcp.dashboard-enabled=true` for the dashboard
- **The Scalar starters no longer register forwarded-header handling.** Set `server.forward-headers-strategy=framework` (or `native`) behind a trusted proxy
- Add `springdoc.cache.max-entries` (default `100`) to bound the per-locale OpenAPI cache
- Add `springdoc.ai.mcp.audit.redact` (default `true`) to mask secrets in MCP audit events
- Document that the MCP approval flow is a confirmation step, not an authorization control
- Document the security policy and the release versioning scheme
- [#&apereo#8203;3351](https://redirect.github.com/springdoc/springdoc-openapi/issues/3351) – `java.time.Duration`, `LocalTime` and `OffsetTime` are now resolved by swagger-core instead of being forced to a bare `string`, so they carry a `format` (`duration` and `partial-time` respectively for the first two)
- A property whose type only implements `Set` indirectly (`LinkedHashSet`, `TreeSet`, …) is now described with `uniqueItems: true`, following [swagger-api/swagger-core#5265](https://redirect.github.com/swagger-api/swagger-core/pull/5265)
- Upgrade swagger-core to version **2.2.55**
- Upgrade swagger-ui to version **5.32.14**

##### Fixed

- [#&apereo#8203;3328](https://redirect.github.com/springdoc/springdoc-openapi/issues/3328), [#&apereo#8203;3337](https://redirect.github.com/springdoc/springdoc-openapi/issues/3337) – `/v3/api-docs` fails with a `NullPointerException` when spring-hateoas is on the classpath without `HateoasProperties`
- [#&apereo#8203;3314](https://redirect.github.com/springdoc/springdoc-openapi/issues/3314) – `Json Processing Exception occurred` is logged for every constrained parameter whose schema is not a `JsonSchema`
- [#&apereo#8203;3317](https://redirect.github.com/springdoc/springdoc-openapi/issues/3317) – An injected `HttpHeaders` parameter is described as a schema
- [#&apereo#8203;3332](https://redirect.github.com/springdoc/springdoc-openapi/issues/3332) – The properties a Kotlin entity inherits from an `@Embeddable` are missing from the Spring Data REST schemas
- [#&apereo#8203;3320](https://redirect.github.com/springdoc/springdoc-openapi/issues/3320) – `@Order` and `Ordered` ignored when applying customizers
- [#&apereo#8203;3319](https://redirect.github.com/springdoc/springdoc-openapi/issues/3319) – A `Page` nested in another schema is not replaced by `PagedModel`
- [#&apereo#8203;3313](https://redirect.github.com/springdoc/springdoc-openapi/issues/3313) – Springdoc auto-configurations rely on unspecified auto-configuration ordering
- [#&apereo#8203;3331](https://redirect.github.com/springdoc/springdoc-openapi/issues/3331) – Validation annotations declared inside `Optional` parameters are dropped
- [#&apereo#8203;3322](https://redirect.github.com/springdoc/springdoc-openapi/issues/3322) – Validation annotations on a container's type argument leak between parameters
- [#&apereo#8203;3315](https://redirect.github.com/springdoc/springdoc-openapi/issues/3315) – An OAS 3.1 `JsonSchema` cannot be cloned through JSON
- [#&apereo#8203;3300](https://redirect.github.com/springdoc/springdoc-openapi/issues/3300) – TYPE\_USE annotations on `@ParameterObject` fields are not passed along
- [#&apereo#8203;3341](https://redirect.github.com/springdoc/springdoc-openapi/issues/3341) – Stabilize Spring Data `Sort` and `Pageable` schema property order
- [#&apereo#8203;3338](https://redirect.github.com/springdoc/springdoc-openapi/issues/3338) – Kotlin nullability interpretation of the `Any?` type
- [#&apereo#8203;3136](https://redirect.github.com/springdoc/springdoc-openapi/issues/3136) – A Spring Data REST association to a non-exported entity expands its `@EmbeddedId` and `@MapsId` fields recursively in the response schemas
- The Spring Data REST response post-processing rewrote an association property in place, so the `…Response` refs could leak into the schema shared with the request body representation

</details>

---

### Configuration

📅 **Schedule**: (in timezone America/Los_Angeles)

- Branch creation
  - "after 5pm,before 9am"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/mmoayyed/cas).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC42MS4zIiwidXBkYXRlZEluVmVyIjoiNDQuNjEuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJCb3QiLCJSZW5vdmF0ZSJdfQ==-->
pull Bot pushed a commit to Mu-L/camunda that referenced this pull request Sep 10, 2026
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[org.springdoc:springdoc-openapi-starter-webmvc-ui](https://springdoc.org/)
([source](https://redirect.github.com/springdoc/springdoc-openapi)) |
`3.1.0` → `3.1.1` |
![age](https://developer.mend.io/api/mc/badges/age/maven/org.springdoc:springdoc-openapi-starter-webmvc-ui/3.1.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.springdoc:springdoc-openapi-starter-webmvc-ui/3.1.0/3.1.1?slim=true)
|
|
[org.springdoc:springdoc-openapi-starter-webmvc-api](https://springdoc.org/)
([source](https://redirect.github.com/springdoc/springdoc-openapi)) |
`3.1.0` → `3.1.1` |
![age](https://developer.mend.io/api/mc/badges/age/maven/org.springdoc:springdoc-openapi-starter-webmvc-api/3.1.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.springdoc:springdoc-openapi-starter-webmvc-api/3.1.0/3.1.1?slim=true)
|
|
[org.springdoc:springdoc-openapi-starter-common](https://springdoc.org/)
([source](https://redirect.github.com/springdoc/springdoc-openapi)) |
`3.1.0` → `3.1.1` |
![age](https://developer.mend.io/api/mc/badges/age/maven/org.springdoc:springdoc-openapi-starter-common/3.1.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.springdoc:springdoc-openapi-starter-common/3.1.0/3.1.1?slim=true)
|

---

### Release Notes

<details>
<summary>springdoc/springdoc-openapi
(org.springdoc:springdoc-openapi-starter-webmvc-ui)</summary>

###
[`v3.1.1`](https://redirect.github.com/springdoc/springdoc-openapi/blob/HEAD/CHANGELOG.md#311---2026-09-06)

##### Security

-
[GHSA-6f5m-mhjg-qwxq](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-6f5m-mhjg-qwxq)
– MCP tool callbacks do not encode path parameters, allowing request
retargeting
-
[GHSA-4v2q-56v7-2cpw](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-4v2q-56v7-2cpw)
– MCP transport, admin and dashboard endpoints are exposed by default
-
[GHSA-m4cg-mhpg-rh2r](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-m4cg-mhpg-rh2r)
– MCP audit events record credentials and request/response bodies
without redaction
-
[GHSA-5f9r-4mc4-qh3c](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-5f9r-4mc4-qh3c)
– Unbounded MCP pending-confirmation store allows memory exhaustion
-
[GHSA-jcgg-59c8-w4wh](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-jcgg-59c8-w4wh)
– MCP request context in a `ThreadLocal` can leak headers between
concurrent WebFlux requests
-
[GHSA-rhhx-6j8h-8cvw](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-rhhx-6j8h-8cvw)
– Unbounded per-locale OpenAPI cache allows memory exhaustion via
`Accept-Language`
-
[GHSA-c925-vm88-mpp9](https://redirect.github.com/springdoc/springdoc-openapi/security/advisories/GHSA-c925-vm88-mpp9)
– Scalar starters trust client-supplied forwarded headers and render
from a shared mutable bean
-
[CVE-2026-75838](https://redirect.github.com/advisories/GHSA-748c-f84h-hp2v)
– Cross-site scripting in the DOMPurify bundled with swagger-ui,
addressed by upgrading swagger-ui to **5.32.14**

##### Added

-
[#&camunda#8203;3340](https://redirect.github.com/springdoc/springdoc-openapi/issues/3340)
– Describe `JsonNullable` values without their Java wrapper
-
[#&camunda#8203;3325](https://redirect.github.com/springdoc/springdoc-openapi/issues/3325)
– Manage the swagger artifacts in `springdoc-openapi-bom`, so that
modules holding only the annotations stay in lockstep
-
[#&camunda#8203;3321](https://redirect.github.com/springdoc/springdoc-openapi/issues/3321)
– Add `springdoc.login-endpoint.username-example` and
`springdoc.login-endpoint.password-example` to document the Spring
Security login endpoint

##### Changed

- **MCP is now opt-in.** Set `springdoc.ai.mcp.enabled=true`, and
`springdoc.ai.mcp.dashboard-enabled=true` for the dashboard
- **The Scalar starters no longer register forwarded-header handling.**
Set `server.forward-headers-strategy=framework` (or `native`) behind a
trusted proxy
- Add `springdoc.cache.max-entries` (default `100`) to bound the
per-locale OpenAPI cache
- Add `springdoc.ai.mcp.audit.redact` (default `true`) to mask secrets
in MCP audit events
- Document that the MCP approval flow is a confirmation step, not an
authorization control
- Document the security policy and the release versioning scheme
-
[#&camunda#8203;3351](https://redirect.github.com/springdoc/springdoc-openapi/issues/3351)
– `java.time.Duration`, `LocalTime` and `OffsetTime` are now resolved by
swagger-core instead of being forced to a bare `string`, so they carry a
`format` (`duration` and `partial-time` respectively for the first two)
- A property whose type only implements `Set` indirectly
(`LinkedHashSet`, `TreeSet`, …) is now described with `uniqueItems:
true`, following
[swagger-api/swagger-core#5265](https://redirect.github.com/swagger-api/swagger-core/pull/5265)
- Upgrade swagger-core to version **2.2.55**
- Upgrade swagger-ui to version **5.32.14**

##### Fixed

-
[#&camunda#8203;3328](https://redirect.github.com/springdoc/springdoc-openapi/issues/3328),
[#&camunda#8203;3337](https://redirect.github.com/springdoc/springdoc-openapi/issues/3337)
– `/v3/api-docs` fails with a `NullPointerException` when spring-hateoas
is on the classpath without `HateoasProperties`
-
[#&camunda#8203;3314](https://redirect.github.com/springdoc/springdoc-openapi/issues/3314)
– `Json Processing Exception occurred` is logged for every constrained
parameter whose schema is not a `JsonSchema`
-
[#&camunda#8203;3317](https://redirect.github.com/springdoc/springdoc-openapi/issues/3317)
– An injected `HttpHeaders` parameter is described as a schema
-
[#&camunda#8203;3332](https://redirect.github.com/springdoc/springdoc-openapi/issues/3332)
– The properties a Kotlin entity inherits from an `@Embeddable` are
missing from the Spring Data REST schemas
-
[#&camunda#8203;3320](https://redirect.github.com/springdoc/springdoc-openapi/issues/3320)
– `@Order` and `Ordered` ignored when applying customizers
-
[#&camunda#8203;3319](https://redirect.github.com/springdoc/springdoc-openapi/issues/3319)
– A `Page` nested in another schema is not replaced by `PagedModel`
-
[#&camunda#8203;3313](https://redirect.github.com/springdoc/springdoc-openapi/issues/3313)
– Springdoc auto-configurations rely on unspecified auto-configuration
ordering
-
[#&camunda#8203;3331](https://redirect.github.com/springdoc/springdoc-openapi/issues/3331)
– Validation annotations declared inside `Optional` parameters are
dropped
-
[#&camunda#8203;3322](https://redirect.github.com/springdoc/springdoc-openapi/issues/3322)
– Validation annotations on a container's type argument leak between
parameters
-
[#&camunda#8203;3315](https://redirect.github.com/springdoc/springdoc-openapi/issues/3315)
– An OAS 3.1 `JsonSchema` cannot be cloned through JSON
-
[#&camunda#8203;3300](https://redirect.github.com/springdoc/springdoc-openapi/issues/3300)
– TYPE\_USE annotations on `@ParameterObject` fields are not passed
along
-
[#&camunda#8203;3341](https://redirect.github.com/springdoc/springdoc-openapi/issues/3341)
– Stabilize Spring Data `Sort` and `Pageable` schema property order
-
[#&camunda#8203;3338](https://redirect.github.com/springdoc/springdoc-openapi/issues/3338)
– Kotlin nullability interpretation of the `Any?` type
-
[#&camunda#8203;3136](https://redirect.github.com/springdoc/springdoc-openapi/issues/3136)
– A Spring Data REST association to a non-exported entity expands its
`@EmbeddedId` and `@MapsId` fields recursively in the response schemas
- The Spring Data REST response post-processing rewrote an association
property in place, so the `…Response` refs could leak into the schema
shared with the request body representation

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
- At 08:00 PM through 11:59 PM and 12:00 AM through 08:59 AM, Monday
through Friday (`* 20-23,0-8 * * 1-5`)
  - Only on Sunday and Saturday (`* * * * 0,6`)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/camunda/camunda).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC43MS4wIiwidXBkYXRlZEluVmVyIjoiNDQuNzEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXJlYS9iYWNrZW5kIiwiYXV0b21lcmdlIiwiZGVwZW5kZW5jaWVzIl19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants