Skip to content

Upgrade swagger-core from version 2.2.52 to 2.2.53 - #3312

Merged
bnasslahsen merged 1 commit into
springdoc:mainfrom
Mattias-Sehlstedt:update-swagger
Sep 6, 2026
Merged

Upgrade swagger-core from version 2.2.52 to 2.2.53#3312
bnasslahsen merged 1 commit into
springdoc:mainfrom
Mattias-Sehlstedt:update-swagger

Conversation

@Mattias-Sehlstedt

@Mattias-Sehlstedt Mattias-Sehlstedt commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Upgrades swagger-core from 2.2.52 to 2.2.53, and with that upgrade some local bug-fixes are removed since they have been fixed upstream.

Changes:
removal of local method fixOAS31ExclusiveConstraints is tied to swagger-api/swagger-core#5170
removal of local method fixNullOnlyAdditionalProperties is tied to swagger-api/swagger-core#5115
9ed2340 is removed due to introduction of swagger-api/swagger-core#5192
4a5cbf5 is removed due to introduction of swagger-api/swagger-core#5193

@bender316

Copy link
Copy Markdown

@Mattias-Sehlstedt Could you update your PR to use swagger-core:2.2.54 in order to get the fix for swagger-api/swagger-core#5226 into springdoc.

@Mattias-Sehlstedt

Copy link
Copy Markdown
Contributor Author

I would prefer to keep this PR strongly targeted against the upstream behavior that replaces local fixes. This so that it will be clear where issues come from if there are any. But I can create another PR for an additional bump once this one is merged (might be that swagger-core does another release before this one is handled too).

@bnasslahsen
bnasslahsen merged commit 56e3ab5 into springdoc:main Sep 6, 2026
1 check passed
bnasslahsen added a commit that referenced this pull request Sep 6, 2026
Port of PR #3312 (main) to the Spring Boot 3 line. swagger-core 2.2.53 fixes
upstream the four behaviours springdoc worked around locally, so the
workarounds are removed:

- PropertyNamingStrategyConverter (swagger-core#415 / #3293)
- SchemaUtils.fixOAS31ExclusiveConstraints (swagger-core#5170)
- SpringDocUtils.fixNullOnlyAdditionalProperties (swagger-core#5115)
- SpringDocUtils.removeNullKeyProperties and its caller in
  AbstractOpenApiResource (swagger-core#5193)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Mattias-Sehlstedt
Mattias-Sehlstedt deleted the update-swagger branch September 6, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants