Skip to content
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

lazy initialization bug #873

Closed
kfirfer opened this issue Sep 21, 2020 · 3 comments
Closed

lazy initialization bug #873

kfirfer opened this issue Sep 21, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@kfirfer
Copy link

kfirfer commented Sep 21, 2020

Hello

When I use lazy initialization, this parameter in application.yaml:

spring:
  main:
    lazy-initialization: true

The swagger UI models and controllers generator are getting completely corrupted

Springdoc openapi version: 1.4.6
Springboot version: 2.3.3

Nots:
When I fallback to 1.4.5, everything's OK

@kfirfer
Copy link
Author

kfirfer commented Sep 21, 2020

In order to be more precise, this is the set of the dependencies I using:

        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-ui</artifactId>
            <version>${springdoc.openapi.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-data-rest</artifactId>
            <version>${springdoc.openapi.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-security</artifactId>
            <version>${springdoc.openapi.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-kotlin</artifactId>
            <version>${springdoc.openapi.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-common</artifactId>
            <version>${springdoc.openapi.version}</version>
        </dependency>

@bnasslahsen
Copy link
Contributor

@kfirfer,

I confirm this issue. And a fix is now available on master.
Please note that for your dependency declaration, you don't need springdoc-openapi-common as it's already transitively referenced by other modules.

@kfirfer
Copy link
Author

kfirfer commented Sep 21, 2020

@bnasslahsen
Thanks a lot !

@bnasslahsen bnasslahsen added the bug Something isn't working label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants