ebowman / api-first-hand

API-First bootstrapping tool for building RESTful web services from a Swagger/OpenAPI spec
MIT License
142 stars 22 forks source link

Extra nesting level for validation errors #79

Closed s12v closed 7 years ago

s12v commented 7 years ago

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"
    ]
  }
]