Why show "Unable to render this definition"?
See original GitHub issuethis is my spring-mvc.xml this is my SwaggerConfig this is SwaggerConfig`bean setting
I’m not sure my setting is ok .
@Bean
public Docket createRestApi1() {
System.out.println("SwaggerConfig.createRestApi--1");
return new Docket(DocumentationType.SWAGGER_2)
.pathMapping("/")
.apiInfo(apiInfo())
.groupName("客户端操作")
.select()
.apis(RequestHandlerSelectors.basePackage("com.tecsun.controller.client"))
.paths(PathSelectors.any())
.build();
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("德生")
.description("文件中心文档")
.termsOfServiceUrl("http://www.e-tecsun.com")
.version("1.0")
.build();
}
}
please save me from my BUG 😃
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Swagger..Unable to render this definition The provided ...
I experimented with Gson instead of Jackson as Spring's default serializer. The /v3/api-docs that Gson generates is wrapped in double quotes.
Read more >Swagger: unable to render this definition · Issue #4531 - GitHub
API Platform version(s) affected: dev/main Description After merging PR #4300, I got the following error when trying to open the UI: Unable ......
Read more >Unable to render this definition The provided defi...
Hello: I generated the python-flask server stubs from the swagger hub, plugged in all the code and when I run the code locally, ......
Read more >Integrated Swagger UI throws error on valid OpenAPI spec file
Unable to render this definition ... Create a new project; Create a new file named openapi.json with the contents shown below and commit...
Read more >OpenAPI - Unable to render this definition - SAP Community
Hi,. I guess the error in the UI comes from the fact that no OpenAPI definition could be created on the fly on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I know where the error is. I should statement swagger2`bean in spring-mvc.xml not in spring.xml
This issue has been automatically closed because it has not had recent activity. Please re-open a new issue if this is still an issue.