Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use real root filename as theoretical root yaml file #322

Merged
merged 6 commits into from
Sep 9, 2024

Conversation

lobocv
Copy link

@lobocv lobocv commented Aug 16, 2024

Instead of using "root.yaml" as a theoretical root, use the real filename of the root spec (often openapi.yaml). This fixes issues with resolving references in rules such as unused-components.

Calvin Lobo added 2 commits August 28, 2024 09:04
…name of the root spec (often openapi.yaml). This fixes issues with resolving references in rules such as unsused-components.
…en the spec's root does not exist on the filesystem (either read from remote URL or []byte)
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.63%. Comparing base (49a2921) to head (839af44).
Report is 20 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #322   +/-   ##
=======================================
  Coverage   99.63%   99.63%           
=======================================
  Files         164      164           
  Lines       16586    16627   +41     
=======================================
+ Hits        16526    16567   +41     
  Misses         55       55           
  Partials        5        5           
Flag Coverage Δ
unittests 99.63% <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 Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@daveshanley daveshanley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break some elements of the library, I will make a list of them.

index/index_model.go Outdated Show resolved Hide resolved
Copy link
Member

@daveshanley daveshanley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daveshanley daveshanley merged commit 9d5251a into pb33f:main Sep 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants