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

feat(oas): add ref name to analyzer #918

Merged
merged 5 commits into from
Dec 5, 2024
Merged

feat(oas): add ref name to analyzer #918

merged 5 commits into from
Dec 5, 2024

Conversation

mjcuva
Copy link
Member

@mjcuva mjcuva commented Dec 4, 2024

🚥 Resolves RM-11499

🧰 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.

@mjcuva mjcuva requested review from erunion and kanadgupta December 4, 2024 20:57
Copy link
Member

@kanadgupta kanadgupta left a 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;
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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!

@erunion erunion added the enhancement New feature or request label Dec 5, 2024
@erunion erunion changed the title feat: add ref name to analyzer feat(oas): add ref name to analyzer Dec 5, 2024
@erunion erunion merged commit 747f356 into main Dec 5, 2024
7 checks passed
@erunion erunion deleted the marc/ref-name-analyzer branch December 5, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants