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

Make risk magnitude a struct #1352

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Make risk magnitude a struct #1352

merged 1 commit into from
Jul 12, 2024

Conversation

jaym
Copy link
Contributor

@jaym jaym commented Jul 2, 2024

No description provided.

Copy link
Contributor

github-actions bot commented Jul 2, 2024

Test Results

  1 files  ±0   24 suites  ±0   18s ⏱️ -1s
391 tests +7  390 ✅ +7  1 💤 ±0  0 ❌ ±0 
392 runs  +7  391 ✅ +7  1 💤 ±0  0 ❌ ±0 

Results for commit a3c2374. ± Comparison against base commit 4b001a6.

♻️ This comment has been updated with latest results.

@jaym jaym marked this pull request as ready for review July 2, 2024 18:44
@@ -17,7 +17,7 @@ import (
func main() {
res := yacit.New(yacit.YacItConfig{
SkipUnmarshal: []string{
"Impact", "ImpactValue", "Filters", "Remediation",
"Impact", "ImpactValue", "Filters", "Remediation", "RiskMagnitude",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious: does having the field here means that it will be unmarshalled using our own UnmarshalJSON func?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It means don't generate the unmarshal function because we will write it manually

@jaym jaym merged commit 4ca0be1 into main Jul 12, 2024
13 checks passed
@jaym jaym deleted the jdm/risk-magnitude branch July 12, 2024 15:05
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants