Skip to content

Share offline validation of YAML nodes and example schemas - #343

Draft
daveshanley wants to merge 3 commits into
mainfrom
codex/openlint-node-validation
Draft

daveshanley wants to merge 3 commits into
mainfrom
codex/openlint-node-validation

Conversation

@daveshanley

Copy link
Copy Markdown
Member

Add two entry points for consumers that already have parsed YAML and a JSON Schema. Validate a node against a compiled schema, or compile an example schema for a request or response. Compilation runs offline and the cache is bounded.

Vacuum uses these entry points for its packaged OpenLint rules in daveshanley/vacuum#1065. Tests cover draft selection, nullable fields, request and response requirements, YAML keys and aliases, and cache ownership.

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (1c28a60) to head (271e6e6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #343      +/-   ##
==========================================
+ Coverage   98.76%   98.77%   +0.01%     
==========================================
  Files          95       96       +1     
  Lines       12428    12576     +148     
==========================================
+ Hits        12274    12422     +148     
  Misses        129      129              
  Partials       25       25              
Flag Coverage Δ
unittests 98.77% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant