CanPUFF canpuff.org

Schemas · v1 · 1.0-rc

JSON Schema, 2020-12, one file per object type.

The schemas are normative for the JSON form of CanPUFF objects. Each is served here at the exact URL it declares as its $id, so a validator can resolve them over the network without any rewriting.

Precision limits (grams to 4 decimal places, money to 2) are writer requirements and are deliberately not asserted by the schemas — IEEE-754 multipleOf is unreliable. See Core §2.

Validating a whole vault? The schemas cover individual objects. Vault-level rules — file placement, id uniqueness across tiers, attachment content-addressing, catalog round-tripping — are checked by validate-vault.py.