Code Monkey home page Code Monkey logo

Comments (4)

jmgnc avatar jmgnc commented on June 12, 2024 1

I think a warning/should for the duplicate UUID/modified date would be fine. I don't think we can make this an explicit fail as there is nothing in the spec that specifically disallows entirely duplicated objects in a bundle.

from cti-stix-validator.

gtback avatar gtback commented on June 12, 2024

Thanks, @jmgnc . I have a feeling this will be somewhat difficult to solve in a generic way (if the IDs are the same, and if modified is the same, then no other properties can be different, etc.).

Is there a requirement in the spec explicitly forbidding this (other than the generic requirements around versioning)? My first impression is that this should be a SHOULD check rather than a MUST, because it's not really the bundle itself that is invalid, but instead one of the two objects, but it's impossible in the general case to know which.

@clenk, @johnwunder, what do you think?

from cti-stix-validator.

clenk avatar clenk commented on June 12, 2024

Is there a case where you would want to put two copies of the same object (id, modified, all properties identical) in the same bundle? If the validator sees two objects with the same UUID, could we just check that the modified property is different and throw an error if they're the same? In other words there is no need to check every single property.

I was thinking of this check as an extra check the validator just always runs, like our check that timestamps are sane (ie. there is no 13th month). It's not tied to an explicit MUST/SHOULD from the spec.

from cti-stix-validator.

gtback avatar gtback commented on June 12, 2024

@clenk I like that approach. @jmgnc does that sound reasonable?

from cti-stix-validator.

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.