UNPKG

@mbc-cqrs-serverless/cli

Version:

a CLI to get started with MBC CQRS serverless framework

13 lines (10 loc) 370 B
import { CommandDto } from '@mbc-cqrs-serverless/core' import { Type } from 'class-transformer' import { IsOptional, ValidateNested } from 'class-validator' import { SampleAttributes } from './sample-attributes.dto' export class SampleCommandDto extends CommandDto { @Type(() => SampleAttributes) @ValidateNested() @IsOptional() attributes: SampleAttributes }