Commit 61d58908 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Fix validation on links

parent d56f2dda
Pipeline #2352 passed with stages
in 31 seconds
import { ApiModelProperty, ApiModelPropertyOptional } from '@nestjs/swagger';
import { IsOptional, IsString, MaxLength } from 'class-validator';
export class Link {
@ApiModelPropertyOptional()
@IsOptional()
@MaxLength(100)
@IsString()
name?: string;
@ApiModelProperty()
@MaxLength(300)
@IsString()
url: string;
}
\ No newline at end of file
......@@ -22,7 +22,6 @@ export class LinkEntity {
url: string;
@Column({ nullable: true })
@IsOptional()
@ApiModelProperty()
organizationId: number;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment