@dryv/class-validatorv0.7.0
class-validator DTO classes with field limits, formats and invariants.
dryv pack add @dryv/class-validatorversion: dryv/v1alpha1
sources:
authoring:
main:
type: ir
path: dryv.ir.yaml
packs:
local:
path: packs
destinations:
out:
path: out
choose: { js.package_manager: bun }
authoring:
source:
$ref: "#/sources/authoring/main"
packs:
types:
source: { $ref: "#/sources/packs/local", path: inject/types/typescript }
destination:
$ref: "#/destinations/out"
root: [types]
dtos:
source: { $ref: "#/sources/packs/local", path: inject/validation/class-validator }
destination:
$ref: "#/destinations/out"
bind:
property.enum.types: { $ref: "#/packs/types" }
property.types: { $ref: "#/packs/types" }