-
Couldn't load subscription status.
- Fork 14
CLOUDP-305862 - format of the docs #533
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
Conversation
|
|
||
| function getIpaRulesetUrl(ipaNumber) { | ||
| return `[${ipaNumber}.yaml](https://github.com/mongodb/openapi/blob/main/tools/spectral/ipa/rulesets/${ipaNumber}.yaml)`; | ||
| return `[http://go/ipa/${ipaNumber}.yaml](http://go/ipa/${ipaNumber}.yaml)`; |
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.
Should this link to the IPA Pine docs?
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.
We agreed that validator description provides much more value for users than repeated validator description in pine docs. Made fix. let me know what you think now.
tools/spectral/ipa/__tests__/collectionIdentifierCamelCase.test.js
Outdated
Show resolved
Hide resolved
tools/spectral/ipa/__tests__/collectionIdentifierCamelCase.test.js
Outdated
Show resolved
Hide resolved
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.
Nice, looking good! A few nits
| ### IPA-005 | ||
|
|
||
| For rule definitions, see [IPA-005.yaml](https://github.com/mongodb/openapi/blob/main/tools/spectral/ipa/rulesets/IPA-005.yaml). | ||
| Rule is based on [http://go/ipa/IPA-005](http://go/ipa/IPA-005). |
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.
| Rule is based on [http://go/ipa/IPA-005](http://go/ipa/IPA-005). | |
| Rule is based on [http://go/ipa/IPA-5](http://go/ipa/IPA-5). |
Last comment 😅 Unfortunately these golinks for numbers < 10 don't have the 00 in front, so this one is 404 currently
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.
Ah.. that is why we had those manually specified. Adding simple logic to cover it
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.
Thanks!
| function formatSeverity(severity) { | ||
| switch (severity.toLowerCase()) { | ||
| case 'info': | ||
| return ''; |
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.
[a11ly]
| return ''; | |
| return ''; |
screen readers will read the text here since images are not accessible, also did we try emojis?
ℹ️
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.
Yes. I had them initially mixed with those but we decided to keep those instead. Adding a11ly change
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.
thanks for all the work here
Proposed changes
Change format of the document to use sections as tables do not support markdown format.
That restricts us to document each rule.
Avoid repeating url to IPA website (private) it is now mentioned on the top once.
Link directly to implementation from the ipa failure giving user more details on the rule specifics.