Forum Discussion

Techtez's avatar
Techtez
Occasional Contributor
4 months ago

exampleSetFlag additional property

I am using Swagger in my RESTEasy project.

I am using the swagger-jaxrs2 version 2.1.12

  1. Swagger UI displays  GET api/{job-id} , POST api/{job-id}, DELETE api/{job-id} and GET api/restesy/{job-id} also along with my API's endpoints.
  2. In the openapi.json,         "schema" : { "type" : "string" , "exampleSetFlag" : false } is generating multiple times. So I am getting an error in the swagger editor that , " schema should not have additional properties, additionalProperty : exampleSetFlag

If I use swagger-jaxrs2 version 2.0.6, additionalProperties and extra endpoints are not generated, but the "info" section is not generated in the openapi.json. Getting error missingProperty :info

I would like to grow with the latest version, but how do I resolve generating of additionalProperty : exampleSetFlag and extra endpoints?