Skip to content

fix(OpenAPI): constraint check logic#4282

Merged
provinzkraut merged 1 commit intolitestar-org:mainfrom
floxay:fix/flat-openapi-constraints
Sep 3, 2025
Merged

fix(OpenAPI): constraint check logic#4282
provinzkraut merged 1 commit intolitestar-org:mainfrom
floxay:fix/flat-openapi-constraints

Conversation

@floxay
Copy link
Copy Markdown
Contributor

@floxay floxay commented Sep 3, 2025

Description

  • Adds back missing constraints to OpenAPI for simple (non-union, non-optional, non-nested) field types that specify constraints.

Closes

Closes #3999

@floxay floxay requested review from a team as code owners September 3, 2025 00:56
@github-actions github-actions bot added area/params This PR involves changes to the params size: small type/bug pr/external Triage Required 🏥 This requires triage labels Sep 3, 2025
Copy link
Copy Markdown
Member

@provinzkraut provinzkraut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good!

@provinzkraut provinzkraut merged commit becfd54 into litestar-org:main Sep 3, 2025
29 checks passed
@floxay floxay deleted the fix/flat-openapi-constraints branch September 3, 2025 14:18
provinzkraut pushed a commit that referenced this pull request Sep 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/params This PR involves changes to the params pr/external size: small Triage Required 🏥 This requires triage type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: failure to reflect constraints in autogenerated OpenAPI spec

2 participants