Replies: 1 comment
-
Hopefully #1121 will clear the way for this sort of functionality. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
User story.
Today spectral works as run time linter. The ask in this user story is to add a report with aggregated errors, warnings and potentially scoring functionality.
As a developer, I want to be able to run spectral with a --report flag and after all the linter errors, warnings we get a report that aggregates errors and scores the spec.
Your OAS score is 84.
Using an overall score for a spec file will give better visibility on the health of an OAS spec and can help teams set benchmarks for developers to meet to onboard specs in their CI pipelines. It also provides much better visibility on executive dashboards to see the overall health of OAS specs in a company.
The thought here is errors could have a default penalty, warnings could have another default penalty and so on..., but the penalty per rule can be overridden in the rule's json:
Is your feature request related to a problem?
Today spectral just spits out errors, warnings, hints and infos. And a lot of the errors, warnings are redundantly repeated. We want a way to aggregate the errors into a meaningful score.
Describe the solution you'd like
A mechanism in spectral to aggregate errors, warnings, infos, hints, into a report with an aggregate OAS score for the spec file.
Beta Was this translation helpful? Give feedback.
All reactions