-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Ability to score quality of async api specification file #1131
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
@Amzani I want to work on this issue:) I have worked similar kind of issue for Jenkins https://github.com/jenkins-infra/plugin-health-scoring that provide scoring for each pluing on basis of some parameters |
Sure @AayushSaini101 please go ahead. |
@Amzani @derberg @Ferror We need to decide how much score we need to increase for particular parameter. Which parameter will be more proritise as compared to others, Otherwise it will create bias issue, What do you think guys ? |
I think we could start with something simple in the form of MVP.
Feel free to propose something. We could also start with linear calculation (without weights) 😄 |
@Amzani @Ferror If we used the same scoring mechanism as Jenkins used on the 1800+ Plugins, this would be the structure: Reference: https://docs.google.com/document/d/1XT5O99-QEZadFZsMuXhzahvEmeL7-1H7HWpsnPLuMIk/edit#heading=h.cw0t6u8yvrcm here my proposal
Example:
Health Scoring Categories for Percentage: Level 1 [ Low Health ]: 0-25% Level 2 [ Medium Health]: 25-75% Level 3 [ Good Health]: >75% We can add lots of parameters like check whether the latest asyncapi version is used or not etc. We can create a poll to take the approval of the coeffiicent from the TSC Members using the voting that we created in community repo. :) |
TotalParameters will be based on async API schema, so it should be const. Quite simple and efficient ❤️ I'm not sure if the voting process would be IMO necessary, but feel free to create it 😄 |
@Ferror Regarding the coefiicient value of different parameters, i guess we need suggestion from members, that's why i am thinking of creating vote |
@AayushSaini101 Great proposal ❤️ |
Sure, I will create a draft PR tomorrow :) |
🎉 This issue has been resolved in version 2.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Reason/Context
Many optional yet valuable parameters in the Async API specification can improve the developer experience. Like
example
,description
,format
, etc. When working with many specifications, I was asked, "How good is our documentation?". How do I measure if my documentation is good, mediocre, insufficient, or 1-100?I propose a new command like
score
orevaluate
that will reuse existing warnings and errors from thevalidate
command. The command will extend the list of best practices and generate some final/aggregated scores. Hints that will increase the score should be provided.A couple of examples
The text was updated successfully, but these errors were encountered: