Skip to content

refactor: use SpecVersion enum in ObjectMapperFactory in preparation for OAS 3.2 - #5255

Open
Mattias-Sehlstedt wants to merge 1 commit into
swagger-api:masterfrom
Mattias-Sehlstedt:use-spec-version-enum-in-object-mapper-factory
Open

refactor: use SpecVersion enum in ObjectMapperFactory in preparation for OAS 3.2#5255
Mattias-Sehlstedt wants to merge 1 commit into
swagger-api:masterfrom
Mattias-Sehlstedt:use-spec-version-enum-in-object-mapper-factory

Conversation

@Mattias-Sehlstedt

Copy link
Copy Markdown
Contributor

Pull Request

Thank you for contributing to swagger-core!

Please fill out the following information to help us review your PR efficiently.


Description

The swagger ecosystem has started moving towards supporting OAS 3.2. As part of enabling that in swagger-core, it would be helpful to move away from the previous binary openapi31 boolean configuration, and instead attempting to move to using the SpecVersion enum (which can then be extended with V32 and any version that comes after that).

I am unsure of to what extent the project considers all public methods part of the overall contract, and what the removal process is. Thus I have for now deprecated them and pointed towards the replacement.

Relates to #5181

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

Screenshots / Additional Context

@Mattias-Sehlstedt
Mattias-Sehlstedt force-pushed the use-spec-version-enum-in-object-mapper-factory branch from 869c7d1 to f7f1f0f Compare July 28, 2026 17:26
@Mattias-Sehlstedt Mattias-Sehlstedt changed the title feat: use SpecVersion enum in ObjectMapperFactory in preparation for OAS 3.2 refactor: use SpecVersion enum in ObjectMapperFactory in preparation for OAS 3.2 Jul 28, 2026
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.

1 participant