Skip to content

feat: enable JSON schema validation by default with -skip flag#72

Open
Bucknalla wants to merge 1 commit into
masterfrom
alex-validation-flag
Open

feat: enable JSON schema validation by default with -skip flag#72
Bucknalla wants to merge 1 commit into
masterfrom
alex-validation-flag

Conversation

@Bucknalla

Copy link
Copy Markdown
Collaborator

Summary

  • JSON schema validation is now on by default for all requests; removes the previous BLUES env var opt-in
  • New -skip flag to relax validation:
    • -skip — skips validation for the current invocation only
    • -skip=N — skips validation for N hours, persisted to /tmp/notecard-skip-validation
  • Schema cache now refreshes daily in the background: serves cached schema immediately, fetches new version behind the scenes, SHA256-compares before writing to avoid unnecessary disk updates

Test plan

  • Run a request without -skip and confirm validation fires
  • Run with -skip and confirm validation is bypassed for that invocation only
  • Run with -skip=1 and confirm subsequent invocations within the hour also skip; confirm skip expires after the window
  • Confirm NOTE_JSON_SCHEMA_URL env var override still works
  • Confirm schema cache file in /tmp/notecard-schema/ is refreshed in background after 24h (check mtime)

🤖 Generated with Claude Code

- Validation now on by default; removed BLUES env var opt-in
- Added -skip flag: no value skips this invocation, -skip=N skips for N hours (persisted to /tmp/notecard-skip-validation)
- Schema cache refreshes daily in the background with SHA256 comparison to avoid unnecessary writes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Bucknalla Bucknalla requested a review from zfields June 11, 2026 14:58
@zfields

zfields commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Let's figure out a way to make the skip parameter be coupled with the way we target the schema for validation.

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.

2 participants