zog
Installation
SKILL.md
Zog is a Zod-shaped API over Go semantics, and the two disagree in ways that still compile. Import as
z "github.com/Oudwins/zog". Three biases decide most calls:
- A remembered Zod default is a defect until checked. Fields are optional by default,
z.Enumdoes not exist, and a schema key names a Go struct field rather than an input key. ParseandValidatedisagree about what missing means, and that disagreement decides which tests in a chain run at all.- Zog panics on a schema its author built wrong, and never on input data. A panic is a defect in the schema definition, fixed there.