Comments (4)
Unfortunately not; empty lists are not allowed (Section 1, Part 2.8):
Empty lists are prohibited in STIX and MUST NOT be used as a substitute for omitting the
property if it is optional. If the property is required, the list MUST be present and MUST
have at least one value.
from cti-python-stix2.
This library is intended to adhere to the standard as written and make it hard to produce spec-invalid content. Part 1, Section 6.8 says the report label is intended to describe the primary purpose or subject of a report.
It's an open vocabulary, so you don't have to use the values suggested in the spec. Perhaps there is something other than an empty string you could use to describe the report's purpose?
You could also bring this up on the CTI TC mailing list or Slack channel. Others there would be able to give you more background on the reasoning behind making it required.
from cti-python-stix2.
According to the specification the label property is required, but it is not stated that a value has to be set. The only additional thing defined is that a value from the supplied ov SHOULD be used. Wouldn't an empty list be in the spirit of the specification?
from cti-python-stix2.
As was noted on Slack, you can use threat-report
as the generic fallback option for a report label.
I'm going to close this issue, but feel free to re-open it if you think it has not been resolved. Thank you for your questions!
from cti-python-stix2.
Related Issues (20)
- How to create a Grouping with context? HOT 6
- STIX2 json parse HOT 1
- Extension decorators and registry don't support extensions with multiple 'extension_types' HOT 1
- Unable to set pretty=false in FileSystemSink as it is hardcoded as true HOT 1
- Query with filter stopped working in STIX2 ver 3.0.0 HOT 1
- Pattern equivalence with AND and Parenthesis raises an error HOT 2
- STIX Custom Object issue with references HOT 18
- Question: How to get the relevant apts of an indicator HOT 2
- Why does File Not have External References??? Seems like a poor decision
- Fails to parse valid TLP2.0 marking object. HOT 1
- Location Object can't have 0 for Longitude/Latitude HOT 1
- Objects containing LIstProperty or DictionaryProperty fields are not Immutable HOT 1
- Cannot accept timestamps more precise than microseconds because of datetime module limitation
- Question: How to... Granular Markings, Eternal References, Update Modified timestamp? HOT 4
- How to get Timestamps to only have milliseconds, rather than microseconds HOT 2
- CISA TLP definition updates HOT 1
- Make semantic validations optional HOT 3
- Granular marking selector validation is incorrect
- Granular marking constraint checking is incorrect
- DictionaryProperty __init__ should take argument which specified the valid types for the value of the dictionary items
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cti-python-stix2.