Hi,

I have been CXF Framework for OpenAPI and its been very easy to use so far.
I have few questions where I am not finding proper documentation/examples
on how to do it. It would be great, if you can help me figuring out what
seems to be happening.


1. To perform a file upload for the type org.apache.cxf.jaxrs.ext.multipart
*.Attachment,  *I added the following schema and the content-type is
"MULTIPART_FORM_DATA", but I am still seeing the $ref in my open-api.json
as "*#/components/schemas/Attachment*" which is a JSONObject.
    @Schema(type = "file", format = "binary", description = "descriptor") )

Is there a valid schema for Attachment type ?

2.  Is there a way to provide a formatted JSONObject as an example instead
of defining a string in the @Schema object ? I see lot of examples with
Swagger where they show the example as valid JSONObject, but not sure how
they would do that with constants.

Thank you in advance !

Regards,
Irfan

Reply via email to