-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat(oas): add ref name to analyzer #918
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll defer to @erunion for final sign off since this is squarely his wheelhouse but looks good to me!
@@ -33,6 +33,7 @@ export interface OASAnalysis { | |||
*/ | |||
raw_body?: OASAnalysisFeature; | |||
'x-default': OASAnalysisFeature; | |||
'x-readme-ref-name': OASAnalysisFeature; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mind adding a JS doc for this since this isn't a public extension?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Let me know if you would word it differently
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's great, thank you!
🧰 Changes
Add a check to the analyzer if the definition previously had a reference in it. Once we dereference a file we add
x-readme-ref-name
as a way to keep track of the previous name. This surfaces if that extension exists in the definition being analyzed.🧬 QA & Testing
Tests should pass, and analyzer should have a new
x-readme-ref-name
field being returned.