Contributing Data
Data integrity is the highest priority. Every holiday entry must be traceable to an official public source.
Workflow
- Update or add a YAML file in
data/sources. - Reference official source metadata in
sources. - Add holiday entries in date order.
- Set
expected.nationalHolidayCountandexpected.collectiveLeaveCount. - Run validation and generation commands.
- Commit both source YAML and generated JSON.
Required Commands
sh
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.cache}" corepack pnpm validate:data
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.cache}" corepack pnpm generate:data
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.cache}" corepack pnpm testFor broader changes, also run:
sh
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.cache}" corepack pnpm typecheck
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.cache}" corepack pnpm format:checkData Rules
- Official public government documents are required for final data.
- Every holiday entry must reference existing
sourceIds. - Keep
national_holidayandcollective_leavedistinct. - Keep holidays sorted by date ascending.
- Do not edit
data/generatedmanually. - Do not introduce future-only types in MVP data unless scope changes.
Naming
Use Indonesian official wording where possible for localName. Use a clear English equivalent for name.
Do not over-normalize religious or official event names if the official source uses specific wording.