diff --git a/spec/endpoints/attachments/uuid.yml b/spec/endpoints/attachments/uuid.yml index 17e162b3c943ebf73c33151c0ce7ce5c1cb28b86..cb676c592bfb661558e0f7297df67716902ecf33 100644 --- a/spec/endpoints/attachments/uuid.yml +++ b/spec/endpoints/attachments/uuid.yml @@ -52,7 +52,7 @@ put: operationId: add-submission-attachment summary: Anlage hinzufügen description: > - Hochladen der in `announcedContentStructure` angekündigten Anlage im JOSE-Format unter der mitgeteilten UUID. Genaueres + Hochladen der in `announcedAttachments` angekündigten Anlage im JOSE-Format unter der mitgeteilten UUID. Genaueres ist in der [Dokumentation](https://docs.fitko.de/fit-connect/getting-started/sending/attachments) beschrieben. tags: - Einreichungsübermittlung diff --git a/spec/examples/create-submission.yml b/spec/examples/create-submission.yml index 6a9e16b9e9836939a08896d3b1bc36e02584f967..0e30b8a11995dc7eb3606ac534ba91237dcdae40 100644 --- a/spec/examples/create-submission.yml +++ b/spec/examples/create-submission.yml @@ -1,10 +1,8 @@ value: destinationId: 879ee109-a690-4db8-ab32-424284184d7d - announcedContentStructure: - data: true - attachments: - - 123ee109-a690-4db8-ab32-424284184d7d - - 456ee109-a690-4db8-ab32-424284184d7d + announcedAttachments: + - 123ee109-a690-4db8-ab32-424284184d7d + - 456ee109-a690-4db8-ab32-424284184d7d serviceType: name: Bauantrag identifier: "urn:de:fim:leika:leistung:99010003001006" diff --git a/spec/examples/submission.yml b/spec/examples/submission.yml index b7e904dbd4db7ad85bd641964066886f02177d7e..7418a81377a973ec48345beab740e259b3681ba4 100644 --- a/spec/examples/submission.yml +++ b/spec/examples/submission.yml @@ -7,11 +7,6 @@ value: - 2046f9f1-dc89-4440-9c24-c76a8f40d668 encryptedMetadata: eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.nlXGAufYH36IABDy0En0LXEhGfC20IZSSchs27ADalHpRoTZKfXhc7hcMk8Y9V8yTP0jYbmrq6NtEg-QS2O5TQFD9Hluhpb631PBgKjPXHY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fqyKH23GiKsnDW.ZtMMjZ3GgcgHss8qbFRhrjl4L0kAfbco-oXICkk.VBHJ00FyDTYjOA_OYfiz5g - announcedContentStructure: - data: true - attachments: - - 879ee109-a690-4db8-ab32-424284184d7d - - 2046f9f1-dc89-4440-9c24-c76a8f40d668 serviceType: name: Bauantrag identifier: "urn:de:fim:leika:leistung:99010003001006" diff --git a/spec/schemas/announced-content-structure.yml b/spec/schemas/announced-content-structure.yml deleted file mode 100644 index 9daded037a680d36ba8de7d3218b38e44425f1a8..0000000000000000000000000000000000000000 --- a/spec/schemas/announced-content-structure.yml +++ /dev/null @@ -1,23 +0,0 @@ -title: Angekündigte Struktur der Einreichung -description: > - Damit der Zustelldienst und der Zustellpunkt die Einreichung vorab, grob validieren können, muss die Struktur der Einreichung - vorab definiert werden. Hierunter ist zu verstehen, ob Fachdaten und Anlagen zusammen mit der Einreichung versendet - werden sollen. Im Falle von Anlagen müssen hier die konkreten `attachmentId`s angegeben werden, damit sie richtig zugeordnet - werden können. -type: object -required: - - data - - attachments -properties: - data: - type: boolean - description: Sind Fachdaten in der Einreichung enthalten oder nicht. - attachments: - type: array - description: Eine Liste mit den `attachmentId`s die mit der Einreichung hochgeladen werden sollen. - minItems: 0 - items: - type: string - format: uuid - minLength: 32 - maxLength: 36 diff --git a/spec/schemas/create-submission.yml b/spec/schemas/create-submission.yml index b81748cf22b62fc310a172fa1ef57b58b4f04176..8051007ffed06dde98f0fb5335b837d2cc33f1ca 100644 --- a/spec/schemas/create-submission.yml +++ b/spec/schemas/create-submission.yml @@ -3,7 +3,7 @@ description: Initiales Objekt zum Erzeugen und ankündigen einer Einreichung type: object required: - destinationId - - announcedContentStructure + - announcedAttachments - serviceType properties: destinationId: @@ -12,8 +12,15 @@ properties: format: uuid minLength: 32 maxLength: 36 - announcedContentStructure: - $ref: './announced-content-structure.yml' + announcedAttachments: + type: array + description: Eine Liste mit den `attachmentId`s die mit der Einreichung hochgeladen werden sollen. + minItems: 0 + items: + type: string + format: uuid + minLength: 32 + maxLength: 36 caseId: type: string format: uuid diff --git a/spec/schemas/submission.yml b/spec/schemas/submission.yml index b991709f65f73a7d26638ce1a1fefdc38b177326..985c852d6022eebeabbeb1f40e863e7ab985baed 100644 --- a/spec/schemas/submission.yml +++ b/spec/schemas/submission.yml @@ -46,5 +46,12 @@ properties: description: Der Inhalt ist nach JSON Web Encryption Compact Serialization, RFC 7516, verschlüsselt type: string pattern: '^[a-zA-Z0-9-_=.]+$' - announcedContentStructure: - $ref: './announced-content-structure.yml' + announcedAttachments: + type: array + description: Eine Liste mit den `attachmentId`s die mit der Einreichung hochgeladen werden sollen. + minItems: 0 + items: + type: string + format: uuid + minLength: 32 + maxLength: 36 diff --git a/spec/zustelldienst.yml b/spec/zustelldienst.yml index 4bd274b74bb70ac86e71d5d62d385b8acc6f59a7..886d35552a608fb462546fcc5e2a0da2ae4d683a 100644 --- a/spec/zustelldienst.yml +++ b/spec/zustelldienst.yml @@ -71,8 +71,6 @@ components: $ref: './parameters/attachmentId.yml' schemas: - AnnouncedContentStructure: - $ref: './schemas/announced-content-structure.yml' Submission: $ref: './schemas/submission.yml' SubmissionCreated: