Skip to content

refactor how the size constraint is applied to a parameter#5080

Open
Mattias-Sehlstedt wants to merge 1 commit intoswagger-api:masterfrom
Mattias-Sehlstedt:refactor-parameter-processor
Open

refactor how the size constraint is applied to a parameter#5080
Mattias-Sehlstedt wants to merge 1 commit intoswagger-api:masterfrom
Mattias-Sehlstedt:refactor-parameter-processor

Conversation

@Mattias-Sehlstedt
Copy link
Contributor

@Mattias-Sehlstedt Mattias-Sehlstedt commented Mar 8, 2026

Pull Request

Thank you for contributing to swagger-core!

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


Description

I would like to pick up the inactive PR #4986, and I saw that there had been some feedback there from a maintainer. With this PR I have partially acted upon it by utilizing the new class that carries ConstraintAnnotation-logic (and I aim to introduce composed-annotation handling there too).

Further refactoring can be done to synchronize the behavior better with the ModelResolver, but for that #5064 is needed, since it breaks out the sibling logic that is currently semi-duplicated between the two classes.

Update: The functionality from #5064 is merged, but it does not align completely with how the ParameterProcessor handles OAS 3.0/OAS 3.1, thus that change is considered out of scope for this PR.

Fixes:

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 refactor-parameter-processor branch from dc6c042 to bb8559b Compare March 13, 2026 19:28
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