Skip to content

Commit

Permalink
fix(jsonapi): return empty data array for empty relation (api-platfor…
Browse files Browse the repository at this point in the history
  • Loading branch information
GwendolenLynch committed Apr 2, 2024
1 parent ba1c61f commit 93f8b5f
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 4 deletions.
3 changes: 3 additions & 0 deletions features/http_cache/tag_collector_service.feature
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ Feature: Cache invalidation through HTTP Cache tags (custom TagCollector service
"type": "RelatedDummy",
"id": "/related_dummies/1"
}
},
"related": {
"data": []
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions features/jsonapi/absolute_url.feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ Feature: IRI should contain Absolute URL
"type": "AbsoluteUrlRelationDummy",
"attributes": {
"_id": 2
},
"relationships": {
"absoluteUrlDummies": {
"data": []
}
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions features/jsonapi/jsonapi.feature
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ Feature: JSON API basic support
"type": "ThirdLevel",
"id": "/third_levels/1"
}
},
"relatedToDummyFriend": {
"data": []
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions features/jsonapi/network_path.feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ Feature: IRI should contain network path
"type": "NetworkPathRelationDummy",
"attributes": {
"_id": 2
},
"relationships": {
"networkPathDummies": {
"data": []
}
}
}
}
Expand Down
Loading

0 comments on commit 93f8b5f

Please sign in to comment.