Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add error object without recommended properties
  • Loading branch information
Art4 committed Jul 19, 2024
commit 8cc6d02dd9d34b06530e4bfee7f1f232983a28fd
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"
}
}