Overview
What this package owns in the runtime
Validation integrates schema-based request validation into the xtaskjs HTTP pipeline. It offers parameter decorators and route-level schema decorators, returns structured validation issues, and plugs into DI for adapter and error customization.
What it provides
- ValidatedBody(), ValidatedQuery(), and ValidatedParam() bind and validate request values directly from handlers.
- SchemaDto() attaches schema metadata to class DTOs used with Body(), Query(), and Param().
- UseBodySchema(), UseQuerySchema(), and UseParamSchema() enable controller- or method-level schema declarations.
- configureValidation() allows custom default adapters and error payload shaping.
How it fits
- When installed, @xtaskjs/core can use this package as the default global HTTP validation layer.
- Works beside @xtaskjs/common decorator pipelines and complements class-validator/class-transformer DTO flows.
- Useful for apps moving to schema-first validation while keeping xtaskjs DI and controller patterns.