Skip to content

@Size min/max optional #166

@rockxwre

Description

@rockxwre

Any thoughts on the following one?
When I use the minLength element with the @Schema annotation without the maxLength element, springdoc-openapi returns only a minLength in the documentation.
However, when I use the @Size annotation with only the min element, also the maxLength will be returned in the documentation. In my opinion the maxLength should not appear in the documentation.
The same goes for only annotating the max element of the @Size annotation. In this case, only the maxLength should be returned in the documentation.

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