File tree Expand file tree Collapse file tree
src/main/kotlin/com/papsign/ktor/openapigen/annotations/type/string/length Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ import com.papsign.ktor.openapigen.schema.processor.SchemaProcessorAnnotation
44import com.papsign.ktor.openapigen.validation.ValidatorAnnotation
55
66@Target(AnnotationTarget .TYPE , AnnotationTarget .PROPERTY )
7- @SchemaProcessorAnnotation(LengthProcessor ::class )
8- @ValidatorAnnotation(LengthProcessor ::class )
7+ @SchemaProcessorAnnotation(MaxLengthProcessor ::class )
8+ @ValidatorAnnotation(MaxLengthProcessor ::class )
99annotation class MaxLength (val value : Int , val message : String = " " )
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ import com.papsign.ktor.openapigen.schema.processor.SchemaProcessorAnnotation
44import com.papsign.ktor.openapigen.validation.ValidatorAnnotation
55
66@Target(AnnotationTarget .TYPE , AnnotationTarget .PROPERTY )
7- @SchemaProcessorAnnotation(LengthProcessor ::class )
8- @ValidatorAnnotation(LengthProcessor ::class )
7+ @SchemaProcessorAnnotation(MinLengthProcessor ::class )
8+ @ValidatorAnnotation(MinLengthProcessor ::class )
99annotation class MinLength (val value : Int , val message : String = " " )
You can’t perform that action at this time.
0 commit comments