Skip to content

"anyOf" fields not reveal on doc request body #3773

@vincentchalamon

Description

@vincentchalamon

API Platform version(s) affected: 2.5.7 (maybe lower)

Description
In the demo, the route POST /reviews doesn't have the book param in the request body example value. If setting nullable=false, the field appears in the request body, but when setting nullable=true, the field does not appear in the request body.

This bug only occurs on "Example value", not in the schema tab, and only for anyOf property type.

How to reproduce
https://demo.api-platform.com/

Possible Solution
swagger-api/swagger-ui#5530
swagger-api/swagger-ui#6540

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions