From 87353d968da795371fc06914f0642b01f1fdbe2e Mon Sep 17 00:00:00 2001 From: Andreas Huber <anh@fjd.de> Date: Thu, 16 Apr 2020 09:32:42 +0200 Subject: [PATCH] Beispiele angepasst --- models/application/public-service-type.json | 6 +++--- models/application/schema.json | 17 ++++++++++++++++- models/common/address-national.json | 4 ++-- models/common/identifier.json | 6 +++--- models/common/individual.json | 10 +++++----- models/destination-no-id.json | 12 ++++++------ models/destination.json | 14 +++++++------- 7 files changed, 42 insertions(+), 27 deletions(-) diff --git a/models/application/public-service-type.json b/models/application/public-service-type.json index 89574b5b..b6db00df 100644 --- a/models/application/public-service-type.json +++ b/models/application/public-service-type.json @@ -6,13 +6,13 @@ "x-examples": { "example-1": { "name": "Gewerbeanmeldung", - "leika-id": "99050012104000" + "leikaId": "99050012104000" }, "example-2": { "name": "Gewerbeanmeldung", "description": "Eine Gewerbeanmeldung ist immer dann notwendig, wenn Sie einen stehenden Gewerbebetrieb beginnen.", - "leika-id": "99050012104000", - "other-identifiers": [ + "leikaId": "99050012104000", + "otherIdentifiers": [ { "id": "8664844", "schemeURI": "service.niedersachsen.de", diff --git a/models/application/schema.json b/models/application/schema.json index 2ad874f7..b5d7ea28 100644 --- a/models/application/schema.json +++ b/models/application/schema.json @@ -28,5 +28,20 @@ "required": [ "schemaSource", "mimeType" - ] + ], + "x-examples": { + "example-1": { + "mimeType": "json", + "schemaSource": "none" + }, + "example-2": { + "mimeType": "xml", + "schemaSource": "none" + }, + "example-3": { + "mimeType": "xml", + "schemaSource": "fim", + "schemaId": "S99000001V1.0" + } + } } \ No newline at end of file diff --git a/models/common/address-national.json b/models/common/address-national.json index af49c217..6dd95751 100644 --- a/models/common/address-national.json +++ b/models/common/address-national.json @@ -4,8 +4,8 @@ "x-examples": { "example-1": { "street": "Kurzer Weg", - "house-number": "7", - "postal-code": "12345", + "houseNumber": 7, + "postalCode": "12345", "city": "Ankh-Morpork" } }, diff --git a/models/common/identifier.json b/models/common/identifier.json index 8a43ab04..25caf8da 100644 --- a/models/common/identifier.json +++ b/models/common/identifier.json @@ -5,16 +5,16 @@ "x-examples": { "example-1": { "id": "978-1-894049-23-8", - "schemeID": "ISBN" + "schemeId": "ISBN" }, "example-2": { "id": "99050012104000", "schemeURI": "https://www.xrepository.de/details/urn:de:gkleika:leika:leistung", "schemeDataURI": "https://www.xrepository.de/details/urn:de:gkleika:leika:leistung_20180705#version", - "schemeVersionID": "urn:de:gkleika:leika:leistung_20180705", + "schemeVersionId": "urn:de:gkleika:leika:leistung_20180705", "schemeAgencyName": "Geschäfts- und Koordinierungsstelle LeiKa beim Ministerium der Finanzen des Landes Sachsen-Anhalt (GK_LEIKA)", "schemeName": "Leistungen des LeiKa", - "schemeID": "urn:de:gkleika:leika:leistung" + "schemeId": "urn:de:gkleika:leika:leistung" } }, "properties": { diff --git a/models/common/individual.json b/models/common/individual.json index 97e93c8f..123e4cf7 100644 --- a/models/common/individual.json +++ b/models/common/individual.json @@ -4,16 +4,16 @@ "description": "Natürliche Person", "x-examples": { "example-1": { - "form-of-address": "Herr", - "academic-title": "Dr.", - "first-name": "Werner", - "last-name": "Mustermann", + "formOfAddress": "Herr", + "academicTitle": "Dr.", + "firstName": "Werner", + "lastName": "Mustermann", "contact": { "telephone": [ { "number": "+49 89 32168-42", "mobile": false, - "type": "work" + "description": "Dienstliche Telefonnummer" } ] } diff --git a/models/destination-no-id.json b/models/destination-no-id.json index 4b5c73f0..8e9860a2 100644 --- a/models/destination-no-id.json +++ b/models/destination-no-id.json @@ -5,25 +5,25 @@ "x-examples": { "example-1": { "public-organization": { - "organization-name": "Gewerbeamt Musterhausen" + "organizationName": "Gewerbeamt Musterhausen" }, - "technical-contact": [ + "technicalContact": [ { - "first-name": "Werner", - "last-name": "Mustermann", + "firstName": "Werner", + "lastName": "Mustermann", "contact": { "telephone": [ { "number": "+49 89 32168-42", "mobile": false, - "type": "work" + "description": "Dienstliches Festnetz" } ] } } ], "callback": { - "callback-url": "https://www.example.com/callback" + "callbackURI": "https://www.example.com/callback" } } }, diff --git a/models/destination.json b/models/destination.json index c803c99d..763bb63a 100644 --- a/models/destination.json +++ b/models/destination.json @@ -22,26 +22,26 @@ "x-examples": { "example-1": { "destination-id": "83578", - "organization": { - "organization-name": "Gewerbeamt Musterhausen" + "public-organization": { + "organizationName": "Gewerbeamt Musterhausen" }, - "technical-contact": [ + "technicalContact": [ { - "first-name": "Werner", - "last-name": "Mustermann", + "firstName": "Werner", + "lastName": "Mustermann", "contact": { "telephone": [ { "number": "+49 89 32168-42", "mobile": false, - "type": "work" + "description": "Dienstliches Festnetz" } ] } } ], "callback": { - "callback-url": "https://www.example.com/callback" + "callbackURI": "https://www.example.com/callback" } } } -- GitLab