-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying maxLength on an array #680
Comments
@dankristensen, something like this could work. It introduces a @Schema(implementation = String.class, maxLength = 15)
class CustomerText {
}
@Schema(description = "Detailed text to customer", required = true, maxItems = 30, implementation = CustomerText[].class)
private String[] customerTextList; |
@MikeEdgar, that does not work as intended. This results in a section like this in my openapi.yaml file:
What i want is this:
Is this not possible to do with annotations? |
@dankristensen , try changing |
I have the following defined in a bean:
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?
The text was updated successfully, but these errors were encountered: