mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge pull request #1041 from Hexastack/1017-bug---nlp-entity-edit-dto-issue
fix(api): add missing field to NlpEntityUpdateDto
This commit is contained in:
commit
3d6518307b
@ -63,6 +63,14 @@ export class NlpEntityCreateDto {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class NlpEntityUpdateDto {
|
export class NlpEntityUpdateDto {
|
||||||
|
@ApiPropertyOptional({ description: 'Name of the nlp entity', type: String })
|
||||||
|
@Matches(/^[a-zA-Z0-9_]+$/, {
|
||||||
|
message: 'Only alphanumeric characters and underscores are allowed.',
|
||||||
|
})
|
||||||
|
@IsString()
|
||||||
|
@IsOptional()
|
||||||
|
name?: string;
|
||||||
|
|
||||||
@ApiPropertyOptional({ type: String })
|
@ApiPropertyOptional({ type: String })
|
||||||
@IsString()
|
@IsString()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
|
Loading…
Reference in New Issue
Block a user