Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

custom validator arrays

import { MinLength, MaxLength } from 'class-validator';

export class Post {
  @MaxLength(20, {
    each: true,
  })
  tags: string[];
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #custom #validator #arrays
ADD COMMENT
Topic
Name
6+3 =