On this page
DocumentationContributing

Naming and schema standards

Use this page when you add public or package-facing names for facts, rules, calculators, HTTP requests or SDK helpers.

Use canonical owners

Import the owning schema, type, branded constructor, descriptor or service tag. Do not redeclare canonical fields such as id: string, ruleId: string, taxYear: string or transport-only mirrors when an owner already exists.

Use current public names

Use these names in public docs and package-facing code:

  • calculate
  • calculateSafe
  • annualIncomeTax
  • calculateRun
  • calculateReport
  • calculateReport
  • CalculatorRunRequest
  • CalculatorRunResponse
  • CalculatorServiceError

Do not introduce stale names in new docs or code. Migration docs may mention old names only when they are explicitly documenting a migration.

Optional policy

Use schema-owned optional fields, Option and Match for optional request and response policy. Do not use conditional object spread to hide fields or raw undefined branching to invent defaults.

For deeper rules, read Effect services and Package ownership.