-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin interface not rendering dropdown for Enum on HydraAdmin #494
Comments
It's because API Platform doesn't return information about the enum with Hydra. |
A workaround for now to have OpenAPi3 enums with Hydra is a proxy of Hydra doc parser, ex.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
API Platform version(s) affected: 3.1.1
Description
HydraAdmin component does not render an Enum type field as a dropdown selection. OpenApiAdmin component renders correctly.
How to reproduce
Create an entity and a backed Enum, set the backed enum as a property on the entity. Configure the property openapi context with enum and values from the backed enum.
API documentation properly shows the property as an enum on both schemas, however, when rendered with the HydraAdmin component it gets rendered as a plain text field.
https://github.com/mihai-amihailesei/api-platform-admin-bug
The text was updated successfully, but these errors were encountered: