Skip to content

Commit

Permalink
Add error object without recommended properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Jul 19, 2024
1 parent c28e2a1 commit 8cc6d02
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/files/10_error_with_links.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"errors": [
{
"code": "123",
"source": { "pointer": "/data/attributes/first-name" },
"title": "Value is too short",
"code": "123",
"source": {
"pointer": "/data/attributes/first-name"
},
"title": "Value is too short",
"links": {
"about": "http://example.org/errors/123"
}
},
},
{
"code": "124",
"code": "124",
"links": {
"about": {
"href": "http://example.org/errors/124"
Expand Down
10 changes: 10 additions & 0 deletions tests/files/19_error_without_recommended_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"errors": [
{
"description": "some description about the error"
}
],
"jsonapi": {
"version": "1.0"
}
}

0 comments on commit 8cc6d02

Please sign in to comment.