ワンクリックで
getting-started
Custom class-validator decorators for NestJS DTOs. Use when validating optional, nullable or conditional values.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Custom class-validator decorators for NestJS DTOs. Use when validating optional, nullable or conditional values.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | getting-started |
| description | Custom class-validator decorators for NestJS DTOs. Use when validating optional, nullable or conditional values. |
import { IsUndefinable, IsNullable, } from '@wisemen/validators'
export class CreateUserCommand {
@IsString()
@IsUndefinable()
middleName?: string
}
export class UpdateUserCommand {
@IsString()
@IsNullable()
bio: string | null
}
export class PaymentDto {
@IsString()
type: string
@IsNullWhen('type', (type) => type !== 'bank_transfer')
@IsString()
iban: string | null
}
IsUndefinable - Skip validation when undefinedIsNullable - Skip validation when nullIsNullableWhen - Conditional nullableIsNullWhen - Must be null when conditionIsDateWithoutTimeString - Date format YYYY-MM-DD, deprecated: use @wisemen/datewiseIsTimeString - Time format HH:mm:ss, deprecated: use @wisemen/datewiseIsShortTimeString - Time format HH:mm, deprecated: use @wisemen/datewiseIsMoneyString - Money format validationIsAfterDateString - Date after another dateIsBeforeDateString - Date before another dateIsSameOrAfterDateString - Date same or afterIsSameOrBeforeDateString - Date same or beforeIsAfterTodayString - Date after todayIsBeforeTodayString - Date before todayIsAfterDateTimeString - DateTime comparisonsIsBeforeDateTimeString - DateTime comparisonsIsSameOrAfterDateTimeString - DateTime comparisonsIsSameOrBeforeDateTimeString - DateTime comparisonsIsAfterTimeString - Time after another timeIsQueryBoolean - Parse query booleanStartsWith - String starts with valueIsRrn - Belgian RRN validationIsPluxeeCustomerId - Pluxee customer IDUse when scanning NestJS providers with DiscoveryService-backed utilities.
Use when working with the @wisemen/nestjs-custom-fields package — developer-defined custom fields in NestJS with TypeORM persistence and runtime validation. Covers registering the CustomFieldDefinition entity, authoring definitions with customFieldDefinition(), storing resolved values via @CustomFieldValueColumn(), exposing them through CustomFieldValueDto / @IsCustomFields(), and validating submissions with CustomFieldDefinitionsRepository + validateCustomFieldValues(). Use this whenever a task involves custom field definitions, CustomFieldValue columns, custom-field DTOs, or tenant-scoped field definitions, even if the package is not named explicitly.
Use when defining Typesense collections, collectors, and search queries in NestJS APIs.
Generate PDFs through API2PDF in NestJS. Use when converting HTML or URLs to PDFs in apis.
Use when storing and validating multilingual text in NestJS apis with TypeORM and class-validator.
Use when configuring NATS messaging, subscribers, or the simple NatsClient in NestJS applications.