Documentation
¶
Overview ¶
Package main demonstrates Synthra's case-preserving, case-insensitive merge and shows how a JSON Schema acts as the canonical authority for key casing.
Without a schema:
config-base.yaml has ApiVersion: v1 (mixed case) config-override.yaml has apiVersion: v2 (canonical casing) Result: ApiVersion: v2 — first source's casing wins; value overridden
With a JSON Schema declaring "apiVersion":
Synthra renames ApiVersion -> apiVersion before validation runs. Result: apiVersion: v2 — schema is the authority for casing.
The logLevel key also demonstrates the same pattern: the base file uses "INFO" (uppercase value, preserved) and the override uses "warn".
Click to show internal directories.
Click to hide internal directories.