Unable to Drilldown Swagger Documentation for selected Objects
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
EDIT:
OpenAPI version used : 3
Swagger Documentation Version : DocumentationType.SWAGGER_2
Its a Java project which uses SpringBoot
- Labels:
-
Swagger UI
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you detail which project and version you're using to build the swagger specification and you project enviornment and configuration?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
