Skip to content

Commit 25899ad

Browse files
committed
Added ability to set xsi_type in from_dict()
1 parent e639507 commit 25899ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cybox/common/vocabs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def from_dict(cls, vocab_dict):
108108
if not isinstance(vocab_dict, dict):
109109
vocab_str.value = vocab_dict
110110
else:
111+
vocab_str.xsi_type = vocab_dict.get('xsi:type')
111112
vocab_str.value = vocab_dict.get('value')
112113
vocab_str.vocab_name = vocab_dict.get('vocab_name')
113114
vocab_str.vocab_reference = vocab_dict.get('vocab_reference')

0 commit comments

Comments
 (0)