Skip to content

Commit

Permalink
fix: remove max length from extra data app fields (#3394)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski committed Apr 13, 2023
1 parent 03cb224 commit 5efdb17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Expose } from "class-transformer"
import { IsEnum, IsString, MaxLength } from "class-validator"
import { IsEnum, IsString } from "class-validator"
import { ValidationsGroupsEnum } from "../../../shared/types/validations-groups-enum"
import { InputType } from "../../../shared/types/input-type"
import { ApiProperty } from "@nestjs/swagger"
Expand All @@ -13,7 +13,6 @@ export class FormMetadataExtraData {

@Expose()
@IsString({ groups: [ValidationsGroupsEnum.default] })
@MaxLength(128, { groups: [ValidationsGroupsEnum.default] })
@ApiProperty()
key: string
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
import { Expose, Type } from "class-transformer"
import {
ArrayMaxSize,
IsBoolean,
IsOptional,
IsString,
MaxLength,
ValidateNested,
} from "class-validator"
import { ArrayMaxSize, IsBoolean, IsOptional, IsString, ValidateNested } from "class-validator"
import { ValidationsGroupsEnum } from "../../../shared/types/validations-groups-enum"
import { FormMetadataExtraData } from "./form-metadata-extra-data"
import { ApiProperty } from "@nestjs/swagger"

export class FormMetadataOptions {
@Expose()
@IsString({ groups: [ValidationsGroupsEnum.default] })
@MaxLength(128, { groups: [ValidationsGroupsEnum.default] })
@ApiProperty()
key: string

Expand Down

0 comments on commit 5efdb17

Please sign in to comment.