Commit Graph
4 Commits
Author SHA1 Message Date
Ulf Wiger 25f81ae339 Add JSON Schema draft discrimination
Track the declared JSON Schema dialect in the validator state and validate
dialect-sensitive constructs before applying a schema.

Recognize draft-04, draft-06, draft-07, 2019-09, and 2020-12, while preserving
the existing compatibility behavior for schemas without a $schema declaration.
Reject unknown dialects and known keywords or forms that do not belong to the
declared draft.

Implement draft-specific exclusive bound semantics, boolean-schema rules, and
array vocabulary differences. Document the behavior and add coverage for all
supported drafts.

The generated Gajumaru draft-04 configuration schema passes the new checks.
2026-08-29 11:30:01 +02:00
Ulf Wiger ffa189b885 Clarify validation example in README 2026-05-14 11:32:17 +02:00
uwigerandUlf Wiger 08287da7b7 Validator extensions, zomp vsn 0.2.0 (#5)
Co-authored-by: Ulf Wiger <ulf@wiger.net>
Reviewed-on: #5
2026-05-14 17:00:02 +09:00
Ulf Wiger e553a2c338 Add README and export gmconfig() type 2025-02-26 12:13:13 +01:00