Skip to content

Array of object doesn't contain name of the object #3096

@peter-busfy-gje

Description

@peter-busfy-gje

We have controller, which returns list of objects as response.
We wondered version 2.8.13 shows just array of object (missing real name of the object)

Image

This way we specified it in the code:

@ApiResponses( value = [ApiResponse( responseCode = "200", description = "Successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = ContactDTO::class)))] )] )

What I assume is correct.
If I downgrade to version 2.7.0 (no other change) everything seems to be ok (ContactDTO is there).

Image

To Reproduce
Steps to reproduce the behavior:

  • spring-boot 3.5.5
  • doc version:

<dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> <version>2.8.13</version> </dependency>

  • java 21
  • kotlin version - 2.2.20
  • not sure which other information could be useful. If needed I can add it later

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions