Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Empty name ("") accepted as a valid name while creating environments #583

Merged
merged 6 commits into from
Dec 9, 2024
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { IsOptional, IsString } from 'class-validator'
import {IsNotEmpty, IsOptional, IsString } from 'class-validator'

export class CreateEnvironment {
@IsString()
@IsNotEmpty()
name: string

zaheer-Khan3260 marked this conversation as resolved.
Show resolved Hide resolved
@IsString()
Expand Down
Loading