Skip to content

Commit

Permalink
Fix examples and Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
clenk committed Oct 27, 2020
1 parent e3f7f05 commit 1dfa511
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions examples/example_json/using-marking-definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"name": "Stark Industries",
"identity_class": "organization",
"sectors": [
"defence"
"defense"
],
"contact_information": "[email protected]"
},
Expand All @@ -23,6 +23,7 @@
"created": "2017-04-14T13:07:49.812Z",
"modified": "2017-04-14T13:07:49.812Z",
"name": "Known malicious IP Address",
"description": "Detected malicious activity from this address",
"indicator_types": [
"malicious-activity"
],
Expand Down Expand Up @@ -55,4 +56,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
name="Stark Industries",
contact_information="[email protected]",
identity_class="organization",
sectors=["defence"]
sectors=["defense"]
)

marking_def_amber = MarkingDefinition(
Expand All @@ -32,6 +32,7 @@
modified="2017-04-14T13:07:49.812Z",
created_by_ref="identity--611d9d41-dba5-4e13-9b29-e22488058ffc",
name="Known malicious IP Address",
description="Detected malicious activity from this address",
indicator_types=["malicious-activity"],
pattern="[ipv4-addr:value = '10.0.0.0']",
pattern_type="stix",
Expand Down
2 changes: 1 addition & 1 deletion validate-examples.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

find . -iname "*.json" -print0 | xargs -0 stix2_validator --strict --ignore 302
find . -iname "*.json" -print0 | xargs -0 stix2_validator --strict --ignore 302,304

0 comments on commit 1dfa511

Please sign in to comment.