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: Path param consumed by dependency treated as unconsumed #3380

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

peterschutt
Copy link
Contributor

Consider parameters defined in handler dependencies in order to determine if a path parameter has been consumed for openapi generation purposes.

Fixes an issue where path parameters not consumed by the handler, but consumed by dependencies would cause an ImproperlyConfiguredException.

Closes #3369

Description

Closes

@peterschutt peterschutt requested review from a team as code owners April 12, 2024 07:38
@github-actions github-actions bot added area/openapi This PR involves changes to the OpenAPI schema area/private-api This PR involves changes to the privatized API size: small type/bug pr/internal labels Apr 12, 2024
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.28%. Comparing base (7b93d97) to head (35372c6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3380   +/-   ##
=======================================
  Coverage   98.28%   98.28%           
=======================================
  Files         323      323           
  Lines       14778    14780    +2     
  Branches     2347     2347           
=======================================
+ Hits        14524    14526    +2     
  Misses        116      116           
  Partials      138      138           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Consider parameters defined in handler dependencies in order to determine if a path parameter has been consumed for openapi generation purposes.

Fixes an issue where path parameters not consumed by the handler, but consumed by dependencies would cause an `ImproperlyConfiguredException`.

Closes #3369
@peterschutt peterschutt force-pushed the 3369-path-param-unconsumed-in-dep branch from fa8c298 to 35372c6 Compare April 12, 2024 07:45
Copy link

sonarcloud bot commented Apr 12, 2024

Copy link

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

@peterschutt peterschutt merged commit c3af6c6 into main Apr 12, 2024
28 checks passed
@peterschutt peterschutt deleted the 3369-path-param-unconsumed-in-dep branch April 12, 2024 08:36
peterschutt added a commit that referenced this pull request May 1, 2024
Consider parameters defined in handler dependencies in order to determine if a path parameter has been consumed for openapi generation purposes.

Fixes an issue where path parameters not consumed by the handler, but consumed by dependencies would cause an `ImproperlyConfiguredException`.

Closes #3369

(cherry picked from commit c3af6c6)
peterschutt added a commit that referenced this pull request May 2, 2024
Consider parameters defined in handler dependencies in order to determine if a path parameter has been consumed for openapi generation purposes.

Fixes an issue where path parameters not consumed by the handler, but consumed by dependencies would cause an `ImproperlyConfiguredException`.

Closes #3369

(cherry picked from commit c3af6c6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/openapi This PR involves changes to the OpenAPI schema area/private-api This PR involves changes to the privatized API pr/internal size: small type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Path parameter consumed only by dependency treated as unconsumed (ref: #3295)
2 participants