From 071ece8b2f3117c88054f5a8a0bdc9d2bf4f5a6c Mon Sep 17 00:00:00 2001 From: Minseok Jung <37059223+Minseok0917@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:25:25 +0900 Subject: [PATCH] styled : validation decorators markdown formalization --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 886712dd76..3ac27b7d96 100644 --- a/README.md +++ b/README.md @@ -813,13 +813,13 @@ isBoolean(value); | `@IsInt()` | Checks if the value is an integer number. | | `@IsArray()` | Checks if the value is an array | | `@IsEnum(entity: object)` | Checks if the value is a valid enum | -| **Number validation decorators** | +| **Number validation decorators** | | | `@IsDivisibleBy(num: number)` | Checks if the value is a number that's divisible by another. | | `@IsPositive()` | Checks if the value is a positive number greater than zero. | | `@IsNegative()` | Checks if the value is a negative number smaller than zero. | | `@Min(min: number)` | Checks if the given number is greater than or equal to given number. | | `@Max(max: number)` | Checks if the given number is less than or equal to given number. | -| **Date validation decorators** | +| **Date validation decorators** | | | `@MinDate(date: Date \| (() => Date))` | Checks if the value is a date that's after the specified date. | | `@MaxDate(date: Date \| (() => Date))` | Checks if the value is a date that's before the specified date. | | **String-type validation decorators** | | @@ -908,7 +908,7 @@ isBoolean(value); | `@ArrayMinSize(min: number)` | Checks if the array's length is greater than or equal to the specified number. | | `@ArrayMaxSize(max: number)` | Checks if the array's length is less or equal to the specified number. | | `@ArrayUnique(identifier?: (o) => any)` | Checks if all array's values are unique. Comparison for objects is reference-based. Optional function can be speciefied which return value will be used for the comparsion. | -| **Object validation decorators** | +| **Object validation decorators** | | | `@IsInstance(value: any)` | Checks if the property is an instance of the passed value. | | **Other decorators** | | | `@Allow()` | Prevent stripping off the property when no other constraint is specified for it. |