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

Provide schema validation when opening a report #81

Open
kehoecj opened this issue Oct 24, 2024 · 1 comment
Open

Provide schema validation when opening a report #81

kehoecj opened this issue Oct 24, 2024 · 1 comment

Comments

@kehoecj
Copy link

kehoecj commented Oct 24, 2024

The https://github.com/Boeing/config-file-validator was hoping to use go-sarif to provide schema validation of a sarif report. It doesn't look like sarif.Open provides this functionality as it just unmarshalls the JSON. Is there a way in your library to then validate this report after loading it into a report object?

@owenrumney
Copy link
Owner

@kehoecj - I don't see why not. I'll bake in the schema and run the validation during the open. I'm away for the next few days but I can take a look next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants