Skip to content

Schema.title doesn't works #2961

@jurogrammer

Description

@jurogrammer

Describe the bug
Schema.title doesn't rendered after openapi updated from 2.6.0 to 2.8.5

To Reproduce
Steps to reproduce the behavior:

@RestController
class UserController {

    @PostMapping("/users")
    @Operation(summary = "create user")
    suspend fun createUser(@RequestBody user: User): User {
        return User(1L, user.name, user.email)
    }
}

@Schema(description = "userInfo")
data class User(
    @Schema(title = "id")
    var id: Long?,
    @Schema(title = "someName")
    val name: String,
    @Schema(title = "someEmail")
    val email: String
)
  • What version of spring-boot you are using? 3.4.3
  • What modules and versions of springdoc-openapi are you using? 2.8.5

Expected behavior
title should be rendered
Image

Screenshots
actual:
Image

Additional context

  • springdoc.api-docs.resolve-schema-properties=true doesn't works

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions