Skip to content

OpenApi: anyOf must contains an array, not an object #7400

@Cafeine42

Description

@Cafeine42

API Platform version(s) affected: since 4.2.
Description
The schema currently defines some anyOf as an object instead of an array, which is invalid.

How to reproduce
Reproduce an Entity with this type of fields :

Image

Additional Context
I use docker run --rm -it -v $(pwd):/tmp stoplight/spectral:6 lint /tmp/openapi.yaml to automatically check my specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions