Skip to content

Extend Server side errors display: show list of violations #157

@numediaweb

Description

@numediaweb

Is there a way to extend the message shown after a failed create resource:
Screenshot 2019-03-15 at 15 46 46

Would be great to display also the full list of violations in the SnackBar Notification since we already have them in the response body:

{
   "@context":"\/api\/contexts\/ConstraintViolationList",
   "@type":"ConstraintViolationList",
   "hydra:title":"An error occurred",
   "hydra:description":"article: This article is already in use on that category.",
   "violations":[
      {
         "propertyPath":"code",
         "message":"article: This article is already in use on that category."
      }
   ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions