Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: OpenaAPI handle tuple with ellipsis annotation #2552

Merged
merged 1 commit into from Oct 28, 2023

Conversation

peterschutt
Copy link
Contributor

Pull Request Checklist

  • New code has 100% test coverage
  • (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
  • (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR
  • Pre-Commit Checks were ran and passed
  • Tests were ran and passed

Description

PR fixes issue where we were treating an annotation such as tuple[int, ...] same as a heterogeneous tuple like tuple[int, str].

Close Issue(s)

Closes #2460

@peterschutt peterschutt requested review from a team as code owners October 28, 2023 02:23
@peterschutt peterschutt changed the title fix: handle tuple ellipsis annotation. fix: OpenaAPI handle tuple with ellipsis annotation Oct 28, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@github-actions
Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/2552

Copy link
Member

@cofin cofin left a comment

Choose a reason for hiding this comment

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

lgtm

@peterschutt peterschutt merged commit 5f0cb6a into main Oct 28, 2023
18 checks passed
@peterschutt peterschutt deleted the 2460-openapi-ellipsis branch October 28, 2023 05:09
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.

Bug: OpenAPI schema generation doesn't support Ellipsis type hint
2 participants