You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Printing stix data using normal print command, also tried with MitreAttackData.print_stix_object() function
Actual Behavior
I receive the following error: serialize() should be provided by the STIX2 base class.
Steps to Reproduce the Problem
Get a stix object (in my case with mitre_attack_data=MitreAttackData("tmp/enterprise-attack/enterprise-attack.json") and then I tried to create a list all_data_components=MitreAttackData.get_datacomponents(mitre_attack_data)
Try to print, serialize() or MitreAttackData.print_stix_object() a stix type object from the created list
Expected Behavior
Printing stix data using normal
printcommand, also tried withMitreAttackData.print_stix_object()functionActual Behavior
I receive the following error:
serialize() should be provided by the STIX2 base class.Steps to Reproduce the Problem
mitre_attack_data=MitreAttackData("tmp/enterprise-attack/enterprise-attack.json") and then I tried to create a listall_data_components=MitreAttackData.get_datacomponents(mitre_attack_data)print,serialize()orMitreAttackData.print_stix_object()a stix type object from the created list