Skip to content

[Feature] Configure required properties based on Kotlin null safety. #147

@jpuerto

Description

@jpuerto

I am currently using the following to define required properties from Kotlin data classes:

data class CarView(
    @field:Schema(required = true) val label: String,
    val description: String?,
    )

It should be great if we can avoid all this boilerplate by expressing the requirement with Kotlin Null Safety. So in previous code we do not need to annotate every field.

I think it could be expressed in the function findSchema

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions