We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
yaml
Provide a way to support yaml instead of json.
json
Ex: all.yaml:
all.yaml
--- - entityRef: kind: api name: api.foo scorePercent: 50 scoreLabel: Yellow scoringReviewDate: '2022-01-01T08:00:00Z' scoreSuccess: almost-failure areaScores: - title: Extensibility scorePercent: 50 scoreLabel: Yellow scoreSuccess: almost-failure - title: Code scorePercent: 100 scoreLabel: Green scoreSuccess: success - title: Quality scorePercent: 25 scoreLabel: Red scoreSuccess: failure - title: Documentation scorePercent: 100 scoreLabel: Green scoreSuccess: success - title: Operations scorePercent: 50 scoreLabel: Yellow scoreSuccess: almost-failure
JSON doesn't support comments so having the scores in YAML enable commenting the score file, for better maintenance.
Adding a new boolean config useYaml that would use .yaml suffix to the urls, and convert the fileback to JSON before processing it.
useYaml
.yaml
I can provide an implementation once I'm done with #99
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. How do you plan to do it? Implementing a new ScoringDataYamlClient ?
ScoringDataYamlClient
Sorry, something went wrong.
Yes it could be, but I see some common code in ScoringDataJsonClient.ts that could be extracted, like the helpers and the call to the catalog API.
ScoringDataJsonClient.ts
Actually the only difference will be:
urlWithData
Then we call the catalog and extend the Entity Score.
No branches or pull requests
Provide a way to support
yaml
instead ofjson
.Ex:
all.yaml
:Feature Suggestion
JSON doesn't support comments so having the scores in YAML enable commenting the score file, for better maintenance.
Possible Implementation
Adding a new boolean config
useYaml
that would use.yaml
suffix to the urls, and convert the fileback to JSON before processing it.Context
I can provide an implementation once I'm done with #99
The text was updated successfully, but these errors were encountered: