ebowman/api-first-hand

Extra nesting level for validation errors

s12v opened this issue · 0 comments

s12v commented

Regression in 0.2.0: validation errors list is nested in another array:

[
  [
    {
      "messages": [
        "error.maxLength"
      ],
      "args": [
        "2"
      ]
    }
  ]
]

Expected, as in 0.1.8:

[
  {
    "messages": [
      "error.maxLength"
    ],
    "args": [
      "2"
    ]
  }
]