You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a Backed Enum class as an API resource, any example value provided in the ApiProperty attribute is ignored and does not appear in the OpenAPI documentation.
This is true for example: 'foo' and openapiContext: ['example' => 'foo'].
On API resources that are Doctrine entities, the supplied example values appear in the OpenAPI documentation.
API Platform version(s) affected: 3.2.20
Description
When using a Backed Enum class as an API resource, any
example
value provided in theApiProperty
attribute is ignored and does not appear in the OpenAPI documentation.This is true for
example: 'foo'
andopenapiContext: ['example' => 'foo']
.On API resources that are Doctrine entities, the supplied example values appear in the OpenAPI documentation.
How to reproduce
https://github.com/gnito-org/problem-replicator-api-platform-enum-example
Possible Solution
Additional Context
The text was updated successfully, but these errors were encountered: