cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Drilldown Swagger Documentation for selected Objects

New Contributor

Unable to Drilldown Swagger Documentation for selected Objects

I have generated Swagger Documentation for Restful Webservice. Everything works fine  but when i start drilling down one of Multi level Model object, i start getting error.

I am getting the error only for selected objects and not for all.

 

Below is the screenshot of error.  Also i have attached the java classes for objects.

 

Any pointers on how to remove this error will be great.

 OpenAPIDoc.png

 

 

EDIT:

 

OpenAPI version used : 3

Swagger Documentation Version : DocumentationType.SWAGGER_2

Its a Java project which uses SpringBoot

 

5 REPLIES 5
Staff

Re: Unable to Drilldown Swagger Documentation for selected Objects

Can you detail which project and version you're using to build the swagger specification and you project enviornment and configuration?

New Contributor

Re: Unable to Drilldown Swagger Documentation for selected Objects

@frantuma  Following are the details:

 

OpenAPI version used : 3

Swagger Documentation Version : DocumentationType.SWAGGER_2

Its a Java project which uses SpringBoot

 

Is there anything else needed?

 

P.S: I have also updated same in my Query

Staff

Re: Unable to Drilldown Swagger Documentation for selected Objects

I guess I can infer you are using springfox , which is not mainainted by Smartbear; if this is the case, please refer to springfox repo/channel 

New Contributor

Re: Unable to Drilldown Swagger Documentation for selected Objects

I did some tests and can confirm that its not a springfox issue.

 

The problem is that all the objects listed in "components/schema" section are not appearing in Models section of Swagger UI due to which it is not able to locate it.

 

I would expect EquityOptionConfigurationDO  to be shown up in Models section as it is listed in Components/Schema section but that doesn't happen.

 

 I have attached the YAML file for reference, can someone please advise on possible solution for this.

Staff

Re: Unable to Drilldown Swagger Documentation for selected Objects

I am not sure I fully understand the issue, from your attached yaml I can see that you have a set of schemas including EquityOptionConfigurationDO which have refs to other files (which I assume are accessible ok with relative url); I guess object schema e.g. of EquityOptionConfigurationDO is defined in these files.

 

Then - if I get this right - you're accessing the yaml spec from swagger UI (how do you config that?), and your issue is that (some?) schemas don't show up in swagger UI model section? So the issue is on the UI, correct?

 

 

New Here?
Join us and watch the welcome video:
Top Kudoed Authors