Skip to content

Commit

Permalink
Person -> Location as Objekt, Location-backreference, see #373
Browse files Browse the repository at this point in the history
  • Loading branch information
the-infinity committed Sep 17, 2017
1 parent 85912ad commit da25779
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 9 additions & 0 deletions schema/Location.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@
"references": "Organization"
}
},
"persons": {
"description": "Rückreferenzen auf Person-Objekte. Wird nur dann ausgegeben, wenn das Location-Objekt nicht als eingebettetes Objekt aufgerufen wird.",
"type": "array",
"items": {
"type": "string",
"format": "url",
"references": "Person"
}
},
"meetings": {
"description": "Rückreferenzen auf Meeting-Objekte. Wird nur dann ausgegeben, wenn das Location-Objekt nicht als eingebettetes Objekt aufgerufen wird.",
"type": "array",
Expand Down
7 changes: 2 additions & 5 deletions schema/Person.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@
},
"location": {
"description": "Referenz der Kontakt-Anschrift der Person.",
"references": "Location",
"backreference": "person",
"cardinality": "n:1",
"type": "string",
"format": "url"
"type": "object",
"schema": "Location.json"
},
"status": {
"description": "Status, d.h. Rollen in der Kommune.",
Expand Down

0 comments on commit da25779

Please sign in to comment.