mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): update contentField name DTO
This commit is contained in:
parent
a12633df4b
commit
420f81d853
@ -14,7 +14,6 @@ import {
|
||||
IsNotEmpty,
|
||||
IsOptional,
|
||||
IsString,
|
||||
Matches,
|
||||
Validate,
|
||||
ValidateNested,
|
||||
} from 'class-validator';
|
||||
@ -27,7 +26,6 @@ import { ValidateRequiredFields } from '../validators/validate-required-fields.v
|
||||
export class ContentField {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@Matches(/^[a-z][a-z_0-9]*$/)
|
||||
name: string;
|
||||
|
||||
@IsString()
|
||||
|
Loading…
Reference in New Issue
Block a user