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

Changelog

0.7.0

  • Examples, specs and the shared test helper write to a new test output slot.

0.6.0

  • Output moves under schema/: <group>/schema/dto/ and common/schema/dto/.

0.5.0

  • Keep each DTO readable: examples go to <group>/dto/examples/ and specs to <group>/dto/testing/, so <group>/dto/ holds only the DTOs.

0.4.0

  • Generate <name>.dto.example.ts (provides schema.examples) and <name>.dto.spec.ts (Vitest: accepts its contract example, rejects unknown properties and every single-constraint violation).
  • Required nested objects get @IsDefined().

0.3.0

  • Require property.enum.types and property.types (for example from inject/types/typescript) and stop generating enums; DTO fields use the shared named types.

0.2.0

  • Place enums per IR group (<group>/dto/enums/), so groups may reuse an enum name.
  • Remove the aggregate common/dto/index.ts barrel: groups may reuse short names, and generated code imports DTOs by file.

0.1.0

  • First release in dryvcode/packs, copied from the Dryv repository's example class-validator pack.