Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #58 from apiaryio/remove-error-values
Browse files Browse the repository at this point in the history
feat: removes "values" from field error messages
  • Loading branch information
artem-zakharchenko authored Aug 2, 2019
2 parents b4deb63 + 3b0cb3e commit 7433b80
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 25 deletions.
12 changes: 2 additions & 10 deletions features/javascript/fields/body.feature
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ Feature: Body validation
},
"errors": [
{
"message": "Can't validate actual media type 'text/plain' against the expected media type 'application/json'.",
"values": {
"expected": "{\n \"firstName\": \"John\",\n \"lastName\": \"Locke\"\n}",
"actual": "Textual body"
}
"message": "Can't validate actual media type 'text/plain' against the expected media type 'application/json'."
}
]
}
Expand Down Expand Up @@ -123,11 +119,7 @@ Feature: Body validation
},
"errors": [
{
"message": "Can't validate actual media type 'application/json' against the expected media type 'text/plain'.",
"values": {
"expected": "Textual body",
"actual": "{\n \"userId\": 1\n}"
}
"message": "Can't validate actual media type 'application/json' against the expected media type 'text/plain'."
}
]
}
Expand Down
6 changes: 1 addition & 5 deletions features/javascript/fields/method.feature
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ Feature: Method validation
},
"errors": [
{
"message": "Expected method 'POST', but got 'PUT'.",
"values": {
"expected": "POST",
"actual": "PUT"
}
"message": "Expected method 'POST', but got 'PUT'."
}
]
}
Expand Down
6 changes: 1 addition & 5 deletions features/javascript/fields/statusCode.feature
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ Feature: Status code validation
},
"errors": [
{
"message": "Expected status code '200', but got '304'.",
"values": {
"expected": "200",
"actual": "304"
}
"message": "Expected status code '200', but got '304'."
}
]
}
Expand Down
6 changes: 1 addition & 5 deletions features/javascript/fields/uri.feature
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ Feature: URI validation
},
"errors": [
{
"message": "Expected URI '/user?id=1', but got '/user?id=2'.",
"values": {
"expected": "/user?id=1",
"actual": "/user?id=2"
}
"message": "Expected URI '/user?id=1', but got '/user?id=2'."
}
]
}
Expand Down

0 comments on commit 7433b80

Please sign in to comment.