Skip to content

Specifying maxLength on an array #680

@dankristensen

Description

@dankristensen

I have the following defined in a bean:

@Schema(description = "Detailed text to customer", required = true, maxItems = 30)
private String[] customerTextList;

How can i also specify that the maxLength of each customerTextList, can maximum be 15 characters long.

Adding maxLength = 15, does not work. Are there any other way to specify this?

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