Skip to content
Snippets Groups Projects
Commit 04c1f3d2 authored by Andreas Huber's avatar Andreas Huber
Browse files

Person aufgelöst

parent 7230335d
No related branches found
No related tags found
1 merge request!5Version 0.2
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
"type": "array", "type": "array",
"description": "Namen der Mitglieder des Vertretungsorgans oder der gesetzlichen Vertreter", "description": "Namen der Mitglieder des Vertretungsorgans oder der gesetzlichen Vertreter",
"items": { "items": {
"$ref": "../person/individual.json" "$ref": "../common/individual.json"
} }
} }
} }
......
{ {
"title": "Abstract Person", "title": "Individual",
"type": "object", "type": "object",
"description": "Abstrakte Klasse für natürliche Person (Individual) und Organisation (Organization)",
"properties": { "properties": {
"form-of-address": {
"type": "string",
"description": "Anrede der Person wie \"Herr\" oder \"Frau\""
},
"academic-title": {
"type": "string",
"description": "Titel der Person wie \"Dr.\" oder \"Prof.\""
},
"first-name": {
"type": "string",
"description": "Vorname der Person"
},
"last-name": {
"type": "string",
"description": "Nachname der Person"
},
"address": { "address": {
"description": "Adresse als Alternative (Choice) von nationaler und internationaler Adresse.", "description": "Adresse als Alternative (Choice) von nationaler und internationaler Adresse.",
"oneOf": [ "oneOf": [
...@@ -47,5 +62,23 @@ ...@@ -47,5 +62,23 @@
} }
} }
} }
},
"description": "Natürliche Person",
"x-examples": {
"example-1": {
"form-of-address": "Herr",
"academic-title": "Dr.",
"first-name": "Werner",
"last-name": "Mustermann",
"contact": {
"telephone": [
{
"number": "+49 89 32168-42",
"mobile": false,
"type": "work"
}
]
}
}
} }
} }
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"description": "Daten eines technischen Übergabepunkts (Ziel der Übertragung - z.B. ein Fachverfahren) noch ohne ID, zum Anlegen eines neuen Übergabepunkts. Nach dem Zuweisen der `destination-id` wird das Modell [Destination](destination.json) verwendet.", "description": "Daten eines technischen Übergabepunkts (Ziel der Übertragung - z.B. ein Fachverfahren) noch ohne ID, zum Anlegen eines neuen Übergabepunkts. Nach dem Zuweisen der `destination-id` wird das Modell [Destination](destination.json) verwendet.",
"x-examples": { "x-examples": {
"example-1": { "example-1": {
"organization": { "public-organization": {
"organization-name": "Gewerbeamt Musterhausen" "organization-name": "Gewerbeamt Musterhausen"
}, },
"technical-contact": [ "technical-contact": [
...@@ -28,14 +28,63 @@ ...@@ -28,14 +28,63 @@
} }
}, },
"properties": { "properties": {
"organization": { "public-organization": {
"$ref": "./person/public-organization.json" "type": "object",
"properties": {
"organization-name": {
"type": ",string"
},
"address": {
"description": "Adresse als Alternative (Choice) von nationaler und internationaler Adresse.",
"oneOf": [
{
"$ref": "./common/address-national.json"
},
{
"$ref": "./common/address-international.json"
}
]
},
"identifiers": {
"type": "array",
"description": "Externe Identifikatoren der Person",
"items": {
"$ref": "./common/identifier.json"
}
},
"contact": {
"description": "Kontaktmöglichkeiten der Behörde",
"type": "object",
"properties": {
"telephone": {
"type": "array",
"description": "Liste der Telefonnummern, außer Fax",
"items": {
"$ref": "./common/phone.json"
}
},
"email": {
"type": "string",
"format": "email",
"description": "E-Mail-Adresse"
},
"www": {
"type": "string",
"format": "uri",
"description": "Webadresse"
},
"telefax": {
"$ref": "./common/phone.json#/properties/number"
}
}
}
}
}, },
"technical-contact": { "technical-contact": {
"type": "array", "type": "array",
"description": "Technischer Ansprechpartner", "description": "Technischer Ansprechpartner",
"items": { "items": {
"$ref": "./person/individual.json" "$ref": "./common/individual.json"
} }
}, },
"schemas": { "schemas": {
......
{
"title": "Individual",
"allOf": [
{
"$ref": "./abstract-person.json"
},
{
"type": "object",
"properties": {
"form-of-address": {
"type": "string",
"description": "Anrede der Person wie \"Herr\" oder \"Frau\""
},
"academic-title": {
"type": "string",
"description": "Titel der Person wie \"Dr.\" oder \"Prof.\""
},
"first-name": {
"type": "string",
"description": "Vorname der Person"
},
"last-name": {
"type": "string",
"description": "Nachname der Person"
}
}
}
],
"description": "Natürliche Person",
"x-examples": {
"example-1": {
"form-of-address": "Herr",
"academic-title": "Dr.",
"first-name": "Werner",
"last-name": "Mustermann",
"contact": {
"telephone": [
{
"number": "+49 89 32168-42",
"mobile": false,
"type": "work"
}
]
}
}
}
}
\ No newline at end of file
{
"title": "Organization",
"allOf": [
{
"type": "object",
"properties": {
"organization-name": {
"type": "string",
"description": "Name der Organisation"
},
"agents": {
"type": "array",
"description": "Ansprechpartner der Organisation",
"items": {
"$ref": "./individual.json"
}
}
},
"required": [
"organization-name"
]
},
{
"$ref": "./abstract-person.json"
}
],
"description": "Eine Organisation, z.B. ein Unternehmen; für Behörden gibt es den Untertyp \"PublicOrganization\""
}
\ No newline at end of file
{
"title": "Public Organization",
"description": "Behörde",
"allOf": [
{
"$ref": "./organization.json"
},
{
"type": "object"
}
]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment