Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(openapi): correctly output OpenAPI parameters#5703

Merged
soyuka merged 1 commit into
api-platform:3.1from
ttskch:fix/openapi-parameters
Aug 2, 2023
Merged

fix(openapi): correctly output OpenAPI parameters#5703
soyuka merged 1 commit into
api-platform:3.1from
ttskch:fix/openapi-parameters

Conversation

@ttskch
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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