Skip to content

fix(metadata): convert the YAML and XML nativeType of a property when it has a parent - #8742

Draft
Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:fix/extractor-property-native-type
Draft

Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:fix/extractor-property-native-type

Conversation

@Maxcastel

Copy link
Copy Markdown
Contributor
Q A
Branch? 5.0
License MIT
properties:
    App\Entity\Book:
        price:
            nativeType: int

This fails with ApiProperty::withNativeType(): Argument #1 ($nativeType) must be of type ?Symfony\Component\TypeInfo\Type, string given. The string is only converted when the extractor factory has no parent, and the YAML one always has one in the bundle. The conversion is now done in both cases.

@Maxcastel Maxcastel changed the title fix(metadata): convert the YAML and XML nativeType of a property when… fix(metadata): convert the YAML and XML nativeType of a property when it has a parent Oct 19, 2026
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.

1 participant