リスト内の個々の文字列が null/空でないこと、または特定のパターンに従っていないことを確認するにはどうすればよいですか
@NotNull
List<String> emailIds;
パターンも追加したい
@Pattern("\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b.")
しかし、リスト内の文字列がnullまたは空白かどうかをチェックする制約が絶対に必要です。また、Jsonスキーマはどのようになりますか
"ids": {
"description": "The ids associated with this.",
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"required" :true }
}
"required" :true does not seem to do the job