Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.6.0
-
None
-
Novice
Description
Currently, specifying "java.io.File" class as response model (for example when the API returns a binary document, aka "Download") in RestOperationResponseMsgDefinition produces an incorrect Swagger / OAS2 / OAS3 definition:
"responses" : { "200" : { "description" : "Created PDF file", "schema" : { "type" : "string", "format" : "java.io.File" }, }, // .... }
The correct way to handle this according to Swagger docs v2 (https://swagger.io/docs/specification/2-0/describing-responses/) is:
"responses" : { "200" : { "description" : "Created PDF file", "schema" : { "type" : "file" }, }, // .... }
camel-openapi-java with OAS2 / OAS3 is also affected.
Attachments
Issue Links
- links to