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

Bei den Metadaten und der Destination ohne ID `"additionalProperties": false` wieder entfernt.

parent cb0f3763
No related branches found
No related tags found
1 merge request!9Version 0.5
...@@ -26,7 +26,8 @@ In der Dokumentation werden die Begriffe "Source" und "Sender" synonym verwendet ...@@ -26,7 +26,8 @@ In der Dokumentation werden die Begriffe "Source" und "Sender" synonym verwendet
> **Hinweis:** Dies wirkt sich auch auf die OAuth-Scopes aus. Der Scope `{senderId}:source:manage` wurde in `{senderId}:sender:manage` geändert. > **Hinweis:** Dies wirkt sich auch auf die OAuth-Scopes aus. Der Scope `{senderId}:source:manage` wurde in `{senderId}:sender:manage` geändert.
### CR-5: Zusätzliche Properties verbieten ### CR-5: Zusätzliche Properties verbieten
Wo möglich wurde `"additionalProperties": false` gesetzt um weitere Properties zu verbieten. - Wo möglich wurde `"additionalProperties": false` gesetzt um weitere Properties zu verbieten.
- Bei den Metadaten und der Destination ohne ID musste `"additionalProperties": false` wieder entfernt werden da sonst keine Ableitung mit `allOf` möglich ist.
## Dokumentation ## Dokumentation
- Release Notes mit aufgenommen - Release Notes mit aufgenommen
......
...@@ -2,68 +2,6 @@ ...@@ -2,68 +2,6 @@
"type": "object", "type": "object",
"title": "Application Metadata without ID", "title": "Application Metadata without ID",
"description": "Metadaten eines Antrags noch ohne ID, zum Anlegen eines neuen Antrags. Nach dem Zuweisen der `application-id` wird das Modell [Application Metadata](metadata.json) verwendet.", "description": "Metadaten eines Antrags noch ohne ID, zum Anlegen eines neuen Antrags. Nach dem Zuweisen der `application-id` wird das Modell [Application Metadata](metadata.json) verwendet.",
"additionalProperties": false,
"properties": {
"applicants": {
"type": "array",
"items": {
"$ref": "./applicant.json"
}
},
"paymentInfo": {
"$ref": "./payment-info.json"
},
"publicServiceType": {
"$ref": "./public-service-type.json"
},
"contentStructure": {
"type": "object",
"required": [
"data",
"docs"
],
"additionalProperties": false,
"properties": {
"data": {
"type": "object",
"required": [
"schema"
],
"additionalProperties": false,
"properties": {
"size": {
"type": "integer",
"description": "Größe des Dokuments in Bytes"
},
"schema": {
"$ref": "./schema.json"
}
}
},
"docs": {
"type": "array",
"items": {
"$ref": "./document.json"
}
}
}
},
"additionalReferenceInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"subject": {
"type": "string"
},
"caseId": {
"type": "string"
}
}
}
},
"required": [
"contentStructure"
],
"x-examples": { "x-examples": {
"example-1": { "example-1": {
"additionalReferenceInfo": { "additionalReferenceInfo": {
...@@ -165,5 +103,66 @@ ...@@ -165,5 +103,66 @@
"transaction": "1f77c5f9b759db9cdce59988b24974d465c7be5e462a6185485559ff6e2dea82" "transaction": "1f77c5f9b759db9cdce59988b24974d465c7be5e462a6185485559ff6e2dea82"
} }
} }
} },
"properties": {
"applicants": {
"type": "array",
"items": {
"$ref": "./applicant.json"
}
},
"paymentInfo": {
"$ref": "./payment-info.json"
},
"publicServiceType": {
"$ref": "./public-service-type.json"
},
"contentStructure": {
"type": "object",
"additionalProperties": false,
"required": [
"data",
"docs"
],
"properties": {
"data": {
"type": "object",
"additionalProperties": false,
"required": [
"schema"
],
"properties": {
"size": {
"type": "integer",
"description": "Größe des Dokuments in Bytes"
},
"schema": {
"$ref": "./schema.json"
}
}
},
"docs": {
"type": "array",
"items": {
"$ref": "./document.json"
}
}
}
},
"additionalReferenceInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"subject": {
"type": "string"
},
"caseId": {
"type": "string"
}
}
}
},
"required": [
"contentStructure"
]
} }
\ No newline at end of file
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
"type": "object", "type": "object",
"title": "Destination without ID", "title": "Destination without ID",
"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.",
"additionalProperties": false,
"properties": { "properties": {
"publicOrganization": { "publicOrganization": {
"type": "object", "type": "object",
......
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