Skip to content

apardawala/toon-validation-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOON Validation Guide

A community-maintained companion to the TOON specification describing how to validate decoded TOON data against JSON Schema 2020-12.

Non-normative. This is not part of the TOON spec and is not endorsed by toon-format. It tracks the spec but cannot extend it.

What this gets you

A short, reference-shaped doc and two runnable example suites (TypeScript via Ajv, Rust via the jsonschema crate) that show how to:

  1. Decode TOON into a host-language value.
  2. Validate that value against a JSON Schema 2020-12 document.
  3. Avoid the integer/number portability footgun (§5) — the one place where the same schema can produce different results across host languages, with a documented workaround.

License

MIT. See LICENSE.

About

Non-normative community companion to the TOON spec: JSON Schema 2020-12 patterns for decoded TOON, with runnable TypeScript and Rust examples.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors