Re: Questions on CXF OpenAPI

2018-09-05 Thread Irfan Pasha
Thank you Andriy, I understand it now. Thank you very much for your time. On Wed, Sep 5, 2018 at 12:10 PM Andrey Redko wrote: > Sadly this is a Swagger UI issue, see please > https://github.com/swagger-api/swagger-ui/issues/3641, it is in backlog > and is not yet implemented for OAS 3.0. > > Bes

Re: Questions on CXF OpenAPI

2018-09-05 Thread Andrey Redko
Sadly this is a Swagger UI issue, see please https://github.com/swagger-api/swagger-ui/issues/3641, it is in backlog and is not yet implemented for OAS 3.0. Best Regards, Andriy Redko On Wed, Sep 5, 2018, 10:41 AM Irfan Pasha wrote: > Hi Andriy, > > I tried that but I still do not see any o

Re: Questions on CXF OpenAPI

2018-09-05 Thread Irfan Pasha
Hi Andriy, I tried that but I still do not see any option to upload. I only see a text area instead of uploading option. Is that the way it should be ? On Wed, Sep 5, 2018 at 9:12 AM Andrey Redko wrote: > Hey Irfan, > > So yeah, you cannot use attachments like this, it should be hidden behind >

Re: Questions on CXF OpenAPI

2018-09-05 Thread Andrey Redko
Hey Irfan, So yeah, you cannot use attachments like this, it should be hidden behind binary payload. The only thing you need to do is to change type="file" to type="string" in your @Schema. This is the OAS 3.0 approach: https://swagger.io/docs/specification/describing-request-body/file-upload/ An

Re: Questions on CXF OpenAPI

2018-09-04 Thread Irfan Pasha
Hi Andrey, As always, thanks for responding so quickly. Please find below the code snippet of my service @PUT @Path("/{WebAppName}") @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces("application/json") @Tag(name = "Update") @Operation( summary = "Update Services",

Re: Questions on CXF OpenAPI

2018-09-04 Thread Andriy Redko
Hi Irfan, Thanks a lot for the feedback. 1) Would you mind providing a short snippet of endpoint definition + OpenAPI annotations? (beside just @Schema) 2) I think the only way to have an example through Java annotations is to use formatted JSON as plain old String. It would be a good question

Questions on CXF OpenAPI

2018-09-04 Thread Irfan Pasha
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.a