diff --git a/models/application/document.json b/models/application/document.json index df5106a975faca8c6d8e6846ae11e2d1a4373094..f79c70c568602a469276a475a3841d95125879c9 100644 --- a/models/application/document.json +++ b/models/application/document.json @@ -3,6 +3,24 @@ "title": "Application Document", "description": "Ein im Antrag (Application) enthaltenes Dokument (z.B. Antragsformular oder hochgeladene Anlage)", "additionalProperties": false, + "x-examples": { + "example-1": { + "docId": "1", + "purpose": "form", + "size": 13046, + "mimeType": "application/pdf", + "filename": "test.pdf", + "description": "Das Antragsformular", + "lang": { + "lang": "de", + "region": "DE" + }, + "hash": { + "algorithm": "SHA-256", + "digest": "bf37d894fdf9aeade63975ed648d49c3e8a7a773923597d2418915f54cd7c3b9" + } + } + }, "properties": { "purpose": { "type": "string", @@ -53,10 +71,8 @@ ] }, "signature": { - "pattern": { - "$ref": "../common/base64url.json#/pattern" - }, "type": "string", + "pattern": "^[a-zA-Z0-9-_=]+$", "description": "Sofern der Antragstellers dieses Dokument signiert hat, wird die Signatur hier base64url-encoded eingebettet" }, "mimeType": { @@ -72,23 +88,5 @@ "purpose", "size", "mimeType" - ], - "x-examples": { - "example-1": { - "docId": "1", - "purpose": "form", - "size": 13046, - "mimeType": "application/pdf", - "filename": "test.pdf", - "description": "Das Antragsformular", - "lang": { - "lang": "de", - "region": "DE" - }, - "hash": { - "algorithm": "SHA-256", - "digest": "bf37d894fdf9aeade63975ed648d49c3e8a7a773923597d2418915f54cd7c3b9" - } - } - } + ] } \ No newline at end of file