Skip to content

Serialize openapi properly fix #3997#4019

Merged
soyuka merged 4 commits into
api-platform:2.6from
soyuka:fix/3997
Feb 5, 2021
Merged

Serialize openapi properly fix #3997#4019
soyuka merged 4 commits into
api-platform:2.6from
soyuka:fix/3997

Conversation

@soyuka

@soyuka soyuka commented Feb 3, 2021

Copy link
Copy Markdown
Member
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.

Comment thread src/OpenApi/Model/Components.php Outdated
@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

@dunglas dunglas left a comment

Copy link
Copy Markdown
Member

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?)

Comment thread src/OpenApi/Serializer/OpenApiNormalizer.php Outdated
Comment thread src/OpenApi/Serializer/OpenApiNormalizer.php Outdated
@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.

2 participants