Code Monkey home page Code Monkey logo

Comments (4)

clenk avatar clenk commented on June 12, 2024 1

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.

clenk avatar clenk commented on June 12, 2024

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.

adulau avatar adulau commented on June 12, 2024

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.

clenk avatar clenk commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.