From cc58a3a4f4401f23c212adf2d46976193e8b42cd Mon Sep 17 00:00:00 2001 From: Trey Darley Date: Tue, 26 Jun 2018 09:22:57 +0000 Subject: [PATCH] 2.1 removes 3 char limit on dict keys --- stix2/v21/properties.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stix2/v21/properties.py b/stix2/v21/properties.py index 39d383a..935a984 100644 --- a/stix2/v21/properties.py +++ b/stix2/v21/properties.py @@ -241,9 +241,7 @@ class DictionaryProperty(Property): raise ValueError("The dictionary property must contain a non-empty dictionary") for k in dictified.keys(): - if len(k) < 3: - raise DictionaryKeyError(k, "shorter than 3 characters") - elif len(k) > 256: + if len(k) > 256: raise DictionaryKeyError(k, "longer than 256 characters") if not re.match('^[a-zA-Z0-9_-]+$', k): raise DictionaryKeyError(k, "contains characters other than"