From 351fef88197f6a6760caeb7bd8340f1ca9240a62 Mon Sep 17 00:00:00 2001
From: Jonas Groeger <jonas.groeger@codecentric.de>
Date: Fri, 18 Jun 2021 21:44:48 +0200
Subject: [PATCH] Remove additionalProperties: false to ensure API
 upgradability.

For forward compatability, clients must ignore additional fields
that are specified in a response.

Fixes: #67
---
 spec/schemas/application-schema.yml  | 1 -
 spec/schemas/contact-information.yml | 1 -
 spec/schemas/create-application.yml  | 1 -
 spec/schemas/create-destination.yml  | 1 -
 spec/schemas/empty-body.yml          | 1 -
 spec/schemas/jwk.yml                 | 1 -
 spec/schemas/state-transition.yml    | 3 +--
 spec/schemas/update-destination.yml  | 1 -
 8 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/spec/schemas/application-schema.yml b/spec/schemas/application-schema.yml
index d308999a..fd22b464 100644
--- a/spec/schemas/application-schema.yml
+++ b/spec/schemas/application-schema.yml
@@ -3,7 +3,6 @@ description: 'Referenz auf ein Schema, das die Struktur der Fachdaten eines Antr
 type: object
 required:
   - schemaURI
-additionalProperties: false
 properties:
   schemaURI:
     type: string
diff --git a/spec/schemas/contact-information.yml b/spec/schemas/contact-information.yml
index 0b3a10c0..5e0a0fc0 100644
--- a/spec/schemas/contact-information.yml
+++ b/spec/schemas/contact-information.yml
@@ -1,7 +1,6 @@
 title: Kontakt
 description: Angaben zum Ansprechpartner des Zustellpunktes
 type: object
-additionalProperties: false
 required:
   - legalName
   - address
diff --git a/spec/schemas/create-application.yml b/spec/schemas/create-application.yml
index 7e141704..80e71a58 100644
--- a/spec/schemas/create-application.yml
+++ b/spec/schemas/create-application.yml
@@ -1,7 +1,6 @@
 title: Objekt zum Erzeugen eines Antrags
 description: 'Metadaten eines Antrags noch ohne ID, zum Anlegen eines neuen Antrags.'
 type: object
-additionalProperties: false
 required:
   - destinationId
   - announcedContentStructure
diff --git a/spec/schemas/create-destination.yml b/spec/schemas/create-destination.yml
index 94a11dd9..8fc4a2a2 100644
--- a/spec/schemas/create-destination.yml
+++ b/spec/schemas/create-destination.yml
@@ -1,7 +1,6 @@
 title: Objekt zum Erzeugen eines Zustellpunkts
 description: 'Notwendige Struktur, um einen Zustellpunkt zu hinterlegen.'
 type: object
-additionalProperties: false
 required:
   - contactInformation
   - schemas
diff --git a/spec/schemas/empty-body.yml b/spec/schemas/empty-body.yml
index e1531d55..0bcd2313 100644
--- a/spec/schemas/empty-body.yml
+++ b/spec/schemas/empty-body.yml
@@ -1,3 +1,2 @@
 title: Leeres JSON-Objekt
 type: object
-additionalProperties: false
diff --git a/spec/schemas/jwk.yml b/spec/schemas/jwk.yml
index 043c0c68..2512fd2c 100644
--- a/spec/schemas/jwk.yml
+++ b/spec/schemas/jwk.yml
@@ -1,7 +1,6 @@
 title: JSON Web Key (JWK)
 type: object
 description: JSON Web Key - RFC 7517
-additionalProperties: false
 required:
   - kty
   - key_ops
diff --git a/spec/schemas/state-transition.yml b/spec/schemas/state-transition.yml
index 631b9f6d..ae367f18 100644
--- a/spec/schemas/state-transition.yml
+++ b/spec/schemas/state-transition.yml
@@ -5,7 +5,6 @@ required:
   - sourceState
   - targetState
   - timestamp
-additionalProperties: false
 properties:
   sourceState:
     $ref: './application-state.yml'
@@ -15,4 +14,4 @@ properties:
     type: string
   timestamp:
     type: string
-    format: date-time
\ No newline at end of file
+    format: date-time
diff --git a/spec/schemas/update-destination.yml b/spec/schemas/update-destination.yml
index 194a6bd1..aa93cc1a 100644
--- a/spec/schemas/update-destination.yml
+++ b/spec/schemas/update-destination.yml
@@ -1,7 +1,6 @@
 title: Aktualisierung eines Zustellpunktes
 description: 'Struktur mit Attributen, die aktualisiert werden sollen.'
 type: object
-additionalProperties: false
 required:
   - contactInformation
   - schemas
-- 
GitLab