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

Serialize openapi properly fix #3997 #4019

Merged
merged 4 commits into from
Feb 5, 2021
Merged

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Feb 3, 2021

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tickets fixes #3997
License MIT
Doc PR na

When adding a name converter some properties of OpenAPI were serialized without respecting the specification causing issues. This fixes it.

src/OpenApi/Model/Components.php Outdated Show resolved Hide resolved
@soyuka soyuka force-pushed the fix/3997 branch 4 times, most recently from 847bbe5 to 65ac528 Compare February 5, 2021 16:21
@soyuka soyuka added this to the 2.6.2 milestone Feb 5, 2021
Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

This looks good to me, but we must prevent this break (by removing the type hints and triggering a deprecation maybe?)

src/OpenApi/Serializer/OpenApiNormalizer.php Outdated Show resolved Hide resolved
@soyuka soyuka merged commit 8a00d6e into api-platform:2.6 Feb 5, 2021
@soyuka soyuka deleted the fix/3997 branch February 5, 2021 23:19
cacahouwete pushed a commit to cacahouwete/core that referenced this pull request Feb 8, 2021
* OpenApi: fix api-platform#3997 do not use a name converter

* simplify api_platform.openapi.normalizer service definition

* fix tests

* fix tests

Co-authored-by: Kévin Dunglas <dunglas@gmail.com>
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.

None yet

2 participants