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(openapi): correctly output OpenAPI parameters #5703

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

ttskch
Copy link
Contributor

@ttskch ttskch commented Jul 26, 2023

Q A
Branch? 3.1
Tickets -
License MIT
Doc PR -

This PR fixes following bug:

When parameters are set in openapiContext for some operations with some filters applied, the filter parameters are lost and only the parameters set in openapiContext are output to OpenAPI.

The cause of this bug was as follows. Even though the pagination and filter parameters are merged at here, they are reset to openapiContext parameters value at here.

@soyuka
Copy link
Member

soyuka commented Aug 1, 2023

Thanks, may you add a non regression test? Also your commit scope could be: fix(openapi): ...

@ttskch ttskch force-pushed the fix/openapi-parameters branch from b91931c to 8a56290 Compare August 2, 2023 02:57
@ttskch ttskch changed the title fix: correctly output OpenAPI parameters fix(openapi): correctly output OpenAPI parameters Aug 2, 2023
@ttskch
Copy link
Contributor Author

ttskch commented Aug 2, 2023

@soyuka

Sorry, openapiContext: is a deprecated feature, and for that it is too much work to modify OpenApiFactoryTest for this PR, so if you can't merge without adding the test, please reject this PR.

I have already confirmed that using openapi: instead of openapiContext: will not cause this problem.

Thanks.

@soyuka soyuka merged commit 146991b into api-platform:3.1 Aug 2, 2023
@ttskch ttskch deleted the fix/openapi-parameters branch August 2, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants