Property Decorators
Property decorators describe DTO fields, attach Swagger metadata, and generate class-validator/class-transformer rules consistent with the entity definition.
Available decorators
Recommended workflow
- Start with
@ApiPropertyDescribeon entities so DTO generation stays centralized. - Apply the property-specific decorators to manual DTOs when fine-grained control is needed.
- Use
@ApiPropertyCopyto mirror existing metadata onto custom DTOs or nested payloads while preserving auto-context behavior.
Related resources
Last updated on