Forum Discussion

Techtez's avatar
Techtez
Occasional Contributor
6 months ago

info and servers tags are not generating in openapi.json

In our RESTEasy application, we are using swagger-jaxrs version 2 2.0.6 is using. @OpenAPIDefinition(info=@Info(title="Test API",version="1.0",description="Test API",servers={@Server(url="/restAPI"}

In the openapi.json , info and servers tags are not generating.

In the swagger-jaxrs2 version  2.0.7 onwards both info and server tags are generating. But  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 and "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

How to generate info and servers in the swagger-jaxrs version 2 2.0.6 version?

Or how to remove additionalProperty : exampleSetFlag and other unwanted endpoints , if I use wagger-jaxrs2 version  2.0.7?

No RepliesBe the first to reply