Knowledge Portal · engineering documentation

Skip to content

Tutorial: Create a New DTO

Audience: Platform engineer
Time: ~20 minutes
Last updated: 2026-07-05


Outcome

An immutable DTO in packages/contracts at a contract boundary.

Steps

  1. Add class under packages/contracts/src/DTOs/{Domain}/
  2. Use typed properties, readonly where applicable
  3. Export via contracts package autoload
  4. Update dto-index.md
  5. Bump contracts semver per breaking change policy

See ENGINEERING/dto-rules.md.

Breadcrumbs: Home → Tutorials → Create DTO

ZAIXOS Knowledge Portal — public engineering docs at /docs · Staff operations at /admin