Open llugin opened 3 months ago
@llugin I guess, you used the csaf-validate function without the remote validator? The Go code currently just checks the JSON schema (strictly) - for the mandatory (and other business level) tests, a remote validator (e.g. csaf-validator-service) must be used.
This is also implemented that way in the csaf_validator
.
I agree that our documentation on that could be clearer. Feel free to submit a PR.
csaf.ValidateCSAF()
doesn't validate against mandatory additional fields for specific CSAF profiles other thancsaf_base
(as described in: https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#4-profiles ). Moreover, providing invalid CSAF profile, eg.doesn't return a validation error.