From 8789890a4bb65b38fada81495a2a31f5d9f6f64f Mon Sep 17 00:00:00 2001 From: Jonas Groeger <jonas.groeger@codecentric.de> Date: Sun, 8 Aug 2021 17:41:48 +0200 Subject: [PATCH] feat(FCON-189): rename 'schemas' to 'submission_schema' this rename is done to have a more specific name for the field. just having the generic word 'schema' might be confusing. Fixes #83 --- spec/examples/create-destination.yml | 2 +- spec/examples/destination-list.yml | 6 +++--- spec/examples/destination.yml | 2 +- spec/examples/update-destination.yml | 2 +- spec/schemas/destination-service.yml | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/examples/create-destination.yml b/spec/examples/create-destination.yml index c2893aeb..fce646c7 100644 --- a/spec/examples/create-destination.yml +++ b/spec/examples/create-destination.yml @@ -7,7 +7,7 @@ value: unit: Department XYZ services: - identifier: "urn:de:fim:leika:leistung:99010003001006" - schemas: + submission_schema: - schemaURI: "https://schema.fitko.de/fim/s00000121_1.0.0.schema.json" mimeType: application/json region: "DE094750156156" diff --git a/spec/examples/destination-list.yml b/spec/examples/destination-list.yml index ab5cd3a4..4fb5d230 100644 --- a/spec/examples/destination-list.yml +++ b/spec/examples/destination-list.yml @@ -3,12 +3,12 @@ value: - destinationId: de735e92-8ced-4298-a021-5f4aa124cc47 services: - identifier: "urn:de:fim:leika:leistung:99010003001006" - schemas: + submission_schema: - schemaURI: "https://schema.fitko.de/fim/s00000121_1.0.0.schema.json" mimeType: application/json region: "DE094750156156" - identifier: "urn:nuernberg:installation-einer-fahrradreparaturstation" - schemas: + submission_schema: - schemaURI: "https://schema.fitko.de/etc/installation-fahrradreparaturstation.json" mimeType: application/json region: "DE09" @@ -36,7 +36,7 @@ value: - destinationId: 2f59b8c6-3206-4734-aa21-a7b2a4d92f7a services: - identifier: "urn:de:fim:leika:leistung:99010003001006" - schemas: + submission_schema: - schemaURI: "https://schema.fitko.de/fim/s00000121_1.0.0.schema.json" mimeType: application/json region: "DE094750156156" diff --git a/spec/examples/destination.yml b/spec/examples/destination.yml index 3acca7b7..b79d344d 100644 --- a/spec/examples/destination.yml +++ b/spec/examples/destination.yml @@ -2,7 +2,7 @@ value: destinationId: 7881dba9-4055-4854-8b6d-11ea5b7f3047 services: - identifier: "urn:de:fim:leika:leistung:99010003001006" - schemas: + submission_schema: - schemaURI: "https://schema.fitko.de/fim/s00000121_1.0.0.schema.json" mimeType: application/json region: "DE094750156156" diff --git a/spec/examples/update-destination.yml b/spec/examples/update-destination.yml index c2893aeb..fce646c7 100644 --- a/spec/examples/update-destination.yml +++ b/spec/examples/update-destination.yml @@ -7,7 +7,7 @@ value: unit: Department XYZ services: - identifier: "urn:de:fim:leika:leistung:99010003001006" - schemas: + submission_schema: - schemaURI: "https://schema.fitko.de/fim/s00000121_1.0.0.schema.json" mimeType: application/json region: "DE094750156156" diff --git a/spec/schemas/destination-service.yml b/spec/schemas/destination-service.yml index b2b4a77a..eccef77a 100644 --- a/spec/schemas/destination-service.yml +++ b/spec/schemas/destination-service.yml @@ -3,7 +3,7 @@ description: Verwaltungsleistung die eine Destination anbietet. type: object required: - identifier - - schemas + - submission_schema - region properties: identifier: @@ -14,7 +14,7 @@ properties: minLength: 7 maxLength: 255 pattern: "^urn:[a-z0-9][a-z0-9-]{0,31}:[a-z0-9()+,.:=@;$_!*'%/?#-]+$" - schemas: + submission_schema: title: Unterstützte Fachschemata description: Auflistung aller unterstützten Fachschemata des Zustellpunktes. uniqueItems: true -- GitLab