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
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
In
OpenApiFactory
, the schema is not generated for the validation error (422):core/src/OpenApi/Factory/OpenApiFactory.php
Line 227 in e649fa1
It would be nice to add it at least for Hydra.
Hydra normalizes the validation error like this:
core/src/Core/Hydra/Serializer/ConstraintViolationListNormalizer.php
Lines 46 to 50 in e649fa1
One way to implement it would be to add a new schema type, like
TYPE_VALIDATION_ERROR
here:core/src/Core/JsonSchema/Schema.php
Lines 30 to 31 in e649fa1
And handle this new type in this method:
core/src/Core/Hydra/JsonSchema/SchemaFactory.php
Line 73 in e649fa1
The text was updated successfully, but these errors were encountered: