-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
migrate examples to openApi part 35; affects [npm] #9866
Conversation
🚀 Updated review app: https://pr-9866-badges-shields.fly.dev |
'/npm/dependency-version/{packageName}/{dependency}': { | ||
get: { | ||
summary: 'NPM (prod) Dependency Version', | ||
parameters: [ | ||
pathParam({ | ||
name: 'packageName', | ||
example: 'react-boxplot', | ||
description: packageNameDescription, | ||
}), | ||
pathParam({ | ||
name: 'dependency', | ||
example: 'simple-statistics', | ||
description: packageNameDescription, | ||
}), |
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 like the fact that we've simplified this into two fields with an explanation of what this scoping business is. I'm personally somewhat familiar with the "scope" terminology because I've occasionally come across it in the Shields.io code, but I feel that someone which isn't a JS power-user may not be familiar with the wording.
However, I must admit that I was briefly confused both when reading the code and trying the badge out in the review app. I think this boils down to the fact that package
is a package and dependency
is also a package, and we're basically overloading the word package in the path parameter name, the explanation of the parameters, and the examples within the explanations.
I think it may help to replace any mentions of package by dependency in the dependency parameter description (even if a dependency is technically also a package), and instead of giving package
and @author/package
as examples in the description, use something more specific-sounding like my-package
and @author/my-package
Refs #9285