Infrastructure medium complexity backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Versioned template store for the Bufdir government reporting specification. Decouples report structure from generation code so format updates (e.g. new Bufdir annual requirements) are deployed by adding a new template version rather than changing application logic. Exposes validation schemas used by Bufdir Report Service to verify report compliance after generation.

Feature: Bufdir Report Generation

bufdir-schema-template

Responsibilities

  • Store and version Bufdir reporting specification templates as structured config files
  • Serve the active spec version for report generation and post-generation validation
  • Allow format updates without code deployment by activating a new template version
  • Provide JSON Schema validation rules per spec version for compliance verification

Interfaces

getActiveTemplate() -> BufdirSpecTemplate
getTemplateByVersion(version: string) -> BufdirSpecTemplate
listAvailableVersions() -> string[]
validateAgainstTemplate(report: BufdirReport, version: string) -> ValidationResult
setActiveVersion(version: string) -> void

Relationships

Dependents (1)

Components that depend on this component