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

Show the Score of the Asyncapi file in the Asyncapi Studio #1103

Open
AayushSaini101 opened this issue May 28, 2024 · 3 comments
Open

Show the Score of the Asyncapi file in the Asyncapi Studio #1103

AayushSaini101 opened this issue May 28, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@AayushSaini101
Copy link

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 or evaluate that will reuse existing warnings and errors from the validate 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

  • if the specification has servers, then it increases the score
  • if the specification has descriptions, then it increases the score
  • if the specification has examples, then it increases the score
  • if the specification has a format, then it increases the score
  • if the specification has channels, then it increases the score
  • if the specification has operations, then it increases the score
  • if the specification has a license, then it increases the score

We can evaluate these parameters and based on the parameter, we can showcase the quality of the asyncapi in the studio.

@AayushSaini101 AayushSaini101 added the enhancement New feature or request label May 28, 2024
Copy link

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.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@KhudaDad414
Copy link
Member

@AayushSaini101 IMHO the quality of the AsyncAPI file is subjective. Some do not mention the server at all, this makes sense for them since they have only one server so why bother? Some only document the channels and it makes sense for their use case.
In the end, it is up to the user and how they use the Specification.

Copy link
Collaborator

Amzani commented Jun 5, 2024

As a second iteration, users could configure their score system.

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
Status: Backlog
Development

No branches or pull requests

3 participants