mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-13 23:35:39 +01:00
clean up validation, still not happy
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
import { EntityIDOptional } from '../validators/entity-id.validator';
|
||||
import { IsOptional, IsString } from 'class-validator';
|
||||
import { IsEntityID } from '../validators/entity-id.validator';
|
||||
|
||||
export class ESysPreference {
|
||||
@EntityIDOptional()
|
||||
@IsOptional()
|
||||
@IsEntityID()
|
||||
id?: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
key: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
value: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user