Skip to content

Collect all JSON Schema validation issues#83

Draft
quinnj wants to merge 2 commits into
masterfrom
codex/issue-38-fail-fast
Draft

Collect all JSON Schema validation issues#83
quinnj wants to merge 2 commits into
masterfrom
codex/issue-38-fail-fast

Conversation

@quinnj

@quinnj quinnj commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

  • add validate(...; fail_fast = false) to collect validation issues in one pass
  • preserve the existing default behavior of returning the first SingleIssue or nothing
  • add regression coverage for the issue example, recursive allOf, and conditional if/then validation
  • document the aggregate validation mode in the README

Root Cause

The validator was structured as a recursive first-failure walk. Nested validators returned immediately after the first SingleIssue, so sibling fields like Title and Desc could not both be reported from one validation call.

Validation

  • julia --project=. -e 'using Pkg; Pkg.test()'
  • git diff --check

Fixes #38

Co-authored by Codex

quinnj added 2 commits July 3, 2026 12:33
Add a fail_fast keyword to validate so callers can collect every validation issue in a single pass while preserving the existing first-failure default.

Fixes #38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

provides validation result for more than SingleIssue?

1 participant