Skip to content

Commit da25779

Browse files
committed
Person -> Location as Objekt, Location-backreference, see #373
1 parent 85912ad commit da25779

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

schema/Location.json

+9
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@
6161
"references": "Organization"
6262
}
6363
},
64+
"persons": {
65+
"description": "Rückreferenzen auf Person-Objekte. Wird nur dann ausgegeben, wenn das Location-Objekt nicht als eingebettetes Objekt aufgerufen wird.",
66+
"type": "array",
67+
"items": {
68+
"type": "string",
69+
"format": "url",
70+
"references": "Person"
71+
}
72+
},
6473
"meetings": {
6574
"description": "Rückreferenzen auf Meeting-Objekte. Wird nur dann ausgegeben, wenn das Location-Objekt nicht als eingebettetes Objekt aufgerufen wird.",
6675
"type": "array",

schema/Person.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,8 @@
7070
},
7171
"location": {
7272
"description": "Referenz der Kontakt-Anschrift der Person.",
73-
"references": "Location",
74-
"backreference": "person",
75-
"cardinality": "n:1",
76-
"type": "string",
77-
"format": "url"
73+
"type": "object",
74+
"schema": "Location.json"
7875
},
7976
"status": {
8077
"description": "Status, d.h. Rollen in der Kommune.",

0 commit comments

Comments
 (0)