Skip to content

Unable to render this definition #683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nnzbz opened this issue May 21, 2020 · 3 comments
Closed

Unable to render this definition #683

nnzbz opened this issue May 21, 2020 · 3 comments

Comments

@nnzbz
Copy link

nnzbz commented May 21, 2020

Error
access http://127.0.0.1:xxxx/swagger-ui.html :

Screen Capture_select-area_20200521091123

Development environment

  • SpringBoot 2.3.0 + springdoc 1.3.9
<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-ui</artifactId>
    <version>1.3.9</version>
</dependency>
  • I don't config application.yml about springdoc and swagger-ui(default)

  • Application.java

@OpenAPIDefinition(info = @Info(//
        title = "xxx", //
        version = "1.2.0", //
        description = "xxxxx"//
))
@SpringCloudApplication
public class Application {

    public static void main(final String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
@nnzbz
Copy link
Author

nnzbz commented May 21, 2020

But

Screen Capture_select-area_20200521094237

@nnzbz
Copy link
Author

nnzbz commented May 21, 2020

Different

  • Error
    Screen Capture_select-area_20200521094815
  • Success
    Screen Capture_select-area_20200521095019

@bnasslahsen
Copy link
Collaborator

@nnzbz,

Your OpenAPI 3 in json format is not using jackson or using a HttpMessageConverter.
Maybe you are using Gson or another json library that causes this issue.
You can look at the sample code to resolve this case here.:

@springdoc springdoc deleted a comment from jiangxiaoqiang Jun 3, 2022
@springdoc springdoc locked as too heated and limited conversation to collaborators Jun 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants