Skip to content

Validate circular and multi-file schema references instead of failing#290

Open
daveshanley wants to merge 1 commit into
mainfrom
circ-refs
Open

Validate circular and multi-file schema references instead of failing#290
daveshanley wants to merge 1 commit into
mainfrom
circ-refs

Conversation

@daveshanley

Copy link
Copy Markdown
Member

Previously, schemas containing circular or external/multi-file $refs were fully inlined before compilation, which failed to render and surfaced a "failed schema rendering" error rather than validating the payload. These schemas are now compiled from named JSON Schema resources that preserve the $ref structure across documents, so circular and multi-file references validate correctly.

Previously, schemas containing circular or external/multi-file $refs were
fully inlined before compilation, which failed to render and surfaced a
"failed schema rendering" error rather than validating the payload. These
schemas are now compiled from named JSON Schema resources that preserve the
$ref structure across documents, so circular and multi-file references
validate correctly.
@codecov

codecov Bot commented Jun 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.64286% with 58 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.84%. Comparing base (13aa668) to head (35ad3db).

Files with missing lines Patch % Lines
schema_validation/schema_resources.go 83.81% 28 Missing and 22 partials ⚠️
schema_validation/locate_schema_property.go 88.88% 3 Missing and 2 partials ⚠️
parameters/validate_parameter.go 94.91% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #290      +/-   ##
==========================================
- Coverage   97.65%   96.84%   -0.82%     
==========================================
  Files          65       67       +2     
  Lines        7133     7447     +314     
==========================================
+ Hits         6966     7212     +246     
- Misses        134      173      +39     
- Partials       33       62      +29     
Flag Coverage Δ
unittests 96.84% <89.64%> (-0.82%) ⬇️

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