Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Classes in other packages are recognized as the same class. #2812

@KimSeongIl

Description

@KimSeongIl

Please take the time to search the repository, if your question has already been asked or answered.

  • What version of the library are you using? Is it the latest version?
  • springfox-swagger2:3.0.0-SNAPSHOT
  • springfox-swagger-ui:3.0.0-SNAPSHOT
  • springfox-spring-webflux:3.0.0-SNAPSHOT

What kind of issue is this?

  • Question. Is this a question about how to do a certain thing?

Hi~!
I have a bit of a strange question about using swagger.

Mono<Response> {
    "collections": [{
          "id" : 1,
          "document": {}   <-- com.example.Document.class
    }],
    "another": [{
           "name": "abc",
           "document": {}   <-- com.example.another.Document.class
     }]
}

Look at the code above.
"document" in "collections" and "document" in "another" are classes in other packages.
In swagger-ui, however, the "document" of "another" is displayed as the "document" of "collections".
Is there a problem that is difficult to distinguish between classes with the same name?
Is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions