dryvPacks

@dryv/class-validatorv0.7.0

class-validator DTO classes with field limits, formats and invariants.

class-validator DTOsValidationInjectPublished 7 days ago2 downloads

dryv pack add @dryv/class-validator
321 BRaw ↗
terminal
#!/usr/bin/env bash
# Typecheck the generated DTOs against class-validator, validate real samples, then run the
# generated contract specs (each DTO accepts its example and rejects every violation).
set -euo pipefail
bun install --silent
bunx tsc -p tsconfig.json
bun test dtos.test.ts
bunx vitest run out --reporter=dot