Skip to content

Commit

Permalink
Removing the + 20 in NameContractGetModel and BaseGatewayNameModel
Browse files Browse the repository at this point in the history
  • Loading branch information
maayarosama committed Jul 7, 2024
1 parent a83855c commit c5f1bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/grid_client/src/modules/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class QSFSZDBGetModel extends BaseGetDeleteModel {}
class QSFSZDBDeleteModel extends BaseGetDeleteModel {}

class BaseGatewayNameModel {
@Expose() @IsString() @IsNotEmpty() @IsAlphanumeric() @MaxLength(NameLength + 20) name: string;
@Expose() @IsString() @IsNotEmpty() @IsAlphanumeric() @MaxLength(NameLength) name: string;
}

class GatewayFQDNModel extends BaseGatewayNameModel {
Expand Down Expand Up @@ -341,7 +341,7 @@ class GetServiceContractModel {
@Expose() @IsInt() @Min(1) serviceId: number;
}
class NameContractGetModel {
@Expose() @IsString() @IsNotEmpty() @IsAlphanumeric() @MaxLength(NameLength + 20) name: string;
@Expose() @IsString() @IsNotEmpty() @IsAlphanumeric() @MaxLength(NameLength) name: string;
}

class NodeContractUpdateModel {
Expand Down

0 comments on commit c5f1bad

Please sign in to comment.