mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-17 12:43:13 +02:00
fix: allow empty strings in config variable
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
import { IsNotEmpty } from "class-validator";
|
import { IsNotEmpty, ValidateIf } from "class-validator";
|
||||||
|
|
||||||
class UpdateConfigDTO {
|
class UpdateConfigDTO {
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
|
@ValidateIf((dto) => dto.value !== "")
|
||||||
value: string | number | boolean;
|
value: string | number | boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user