Skip to content

ErrorException on 400 Responses without Violations #96

@Rainrider

Description

@Rainrider

When an API returns a 400 response without validation violations, AbstractConstraintViolationListDenormalizer throws an ErrorException 'Warning: Undefined array key "violations"'

400: Bad Request responses in Api Platform normally do not have details on validation violations (those are normally contained in 422: Unprocessable Entity). An example for such response is when an IRI cannot be resolved to a resource which is then resolved to a 400 status code.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions