cti-stix-validator icon indicating copy to clipboard operation
cti-stix-validator copied to clipboard

Better warning messages for open vocabs and relationship types

Open rpiazza opened this issue 2 years ago • 2 comments

Before you were on the working call today, we discussed this issue, which Sean has said he has been asked about.

We thought maybe there could be more "gentle" warning for such messages. Here are some ideas off the top of my head:

's value is permitted, but not in

Relationship type is permitted, but not explicitly defined in the specification

rpiazza avatar Feb 22 '23 00:02 rpiazza

Change the warning message at https://github.com/oasis-open/cti-stix-validator/blob/master/stix2validator/v21/shoulds.py#L539 to say:

'%s' is permitted, but not a suggested relationship type for '%s' objects

and at https://github.com/oasis-open/cti-stix-validator/blob/master/stix2validator/v21/shoulds.py#L390 to say:

"The value contained in %s is permitted, but is not in the %s-ov vocabulary."

rpiazza avatar Sep 14 '24 19:09 rpiazza

use this file to test:

malware-indicator-for-file-hash.json

rpiazza avatar Sep 14 '24 19:09 rpiazza