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

Unclear Artifact error message #176

Open
clenk opened this issue Jun 25, 2021 · 0 comments
Open

Unclear Artifact error message #176

clenk opened this issue Jun 25, 2021 · 0 comments

Comments

@clenk
Copy link
Contributor

clenk commented Jun 25, 2021

Because of https://github.com/oasis-open/cti-stix-validator/blob/master/stix2validator/errors.py#L189, if an Artifact SCO contains decryption_key but not encryption_algorithm it will give an error about url and hashes. There are two instance of oneOf in the schema:

Our error prettifying code in the validator needs to distinguish between the two.

Relevant quote from the spec:

[decryption_key] MUST NOT be present when the encryption_algorithm property is absent.

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

1 participant