BC break in 2.5.8 · Issue #3918 · api-platform/core · GitHub
Skip to content

BC break in 2.5.8 #3918

Description

@theofidry

Reproducer: https://github.com/theofidry/bug-9283

composer install
docker-compose up -d
bin/console doctrine:migration:migrate --env test
vendor/bin/phpunit

We have been using API-Platform with VOs as entity identifiers. Although the doc generated by API-Platform looks wrong (assumes it's an object):

Screen Shot 2020-12-19 at 14 36 48

It is in practice working fine.

However when it comes to the testing utilities, the ::assertMatchesResource{Item,Collection}JsonSchema() assertions now fail with a message along the lines of:

hydra:member[0].id: Integer value found, but an object is required

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions