Skip to content

lazy initialization bug #873

@kfirfer

Description

@kfirfer

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

Activity

kfirfer

kfirfer commented on Sep 21, 2020

@kfirfer
Author

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

bnasslahsen commented on Sep 21, 2020

@bnasslahsen
Collaborator

@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

kfirfer commented on Sep 21, 2020

@kfirfer
Author

@bnasslahsen
Thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kfirfer@bnasslahsen

        Issue actions

          lazy initialization bug · Issue #873 · springdoc/springdoc-openapi