Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Data in relationships should be nullable #1006

Closed
nictas opened this issue Oct 8, 2019 · 0 comments
Closed

Data in relationships should be nullable #1006

nictas opened this issue Oct 8, 2019 · 0 comments

Comments

@nictas
Copy link
Contributor

nictas commented Oct 8, 2019

This is regarding the ToOneRelationship class: In it, the data field is not marked as @Nullable. However, when running cf curl /v3/organizations/<GUID>/domains/default I got the following response (note the relationships/organization field):

{
   "guid": "<GUID>",
   "created_at": "2016-10-06T08:30:16Z",
   "updated_at": "2019-03-04T11:12:14Z",
   "name": "<NAME>",
   "internal": false,
   "metadata": {
      "labels": {},
      "annotations": {}
   },
   "relationships": {
      "organization": {
         "data": null
      },
      "shared_organizations": {
         "data": []
      }
   },
   "links": {
      "self": {
         "href": "https://<API>/v3/domains/<GUID>"
      },
      "route_reservations": {
         "href": "https://<API>/v3/domains/<GUID>/route_reservations"
      }
   }
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants