diggsweden / sdk-docs

Dokumentation för SDK-projeket.
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

DeleteMessage is a list #8

Open mcNisse opened 1 month ago

mcNisse commented 1 month ago

Contact Details (Optional)

johan.erlands@idainfront.se

What happened?

The generated code for deleteMessage gets an array of messageIds. It should be only one.

Items should be removed and example indented accordingly.

modified   Meddelandesystem/stödjande-specifikationer/api-mt-mk/sdk-api-restful.yml
@@ -205,9 +205,7 @@ paths:
           required: true
           schema:
             type: string
-            items:
-              type: string
-              example: f92d0823-e219-4985-bace-07a4102f2988
+            example: f92d0823-e219-4985-bace-07a4102f2988
           style: simple

       responses:

Steps To Reproduce

Generate java code from the specification.

What did you expect?

The methods for delete message should get one messageId as argument

Version (Optional)

No response

Screenshots (Optional)

No response

Relevant log output (Optional)

No response

marcodeluca1 commented 1 month ago

Enligt dokumentation skall operationen endast acceptera ett (1) meddelande. Detta innebär att yml specifikationen är fel. Nästa version yml filen så kommer detta korrigeras enligt: operationId: deleteMessageById summary: Delete a message. A client can only delete messages on specific messages status tags: