Skip to content

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

Merged
ewaostrowska merged 1 commit intoswagger-api:masterfrom
Mattias-Sehlstedt:refactor-parameter-processor
Apr 7, 2026
Merged

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

Conversation

@Mattias-Sehlstedt
Copy link
Copy Markdown
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
@ewaostrowska ewaostrowska force-pushed the refactor-parameter-processor branch from bb8559b to 4d29cde Compare April 7, 2026 08:13
@ewaostrowska ewaostrowska force-pushed the refactor-parameter-processor branch from 4d29cde to 0456333 Compare April 7, 2026 12:21
@ewaostrowska
Copy link
Copy Markdown
Contributor

@Mattias-Sehlstedt thank you once again for putting your effort into refactoring this old code and making it a little bit easier to understand for everyone:)

@ewaostrowska ewaostrowska merged commit b9b9e96 into swagger-api:master Apr 7, 2026
7 checks passed
@Mattias-Sehlstedt Mattias-Sehlstedt deleted the refactor-parameter-processor branch April 7, 2026 14:59
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.

2 participants