Code Monkey home page Code Monkey logo

Comments (6)

clenk avatar clenk commented on June 12, 2024 1

Yes, to be on the safe side I think so. I've been meaning to work on this for a while but haven't found the time.

EDIT: the "version-specific" stuff will mostly just be "which functions to call"

from cti-stix-validator.

gtback avatar gtback commented on June 12, 2024

I think you can have multiple git submodules that refer to the same repo (at different commits) for multiple copies of the JSON schemas. In terms of supporting multiple versions, the validator should:

  • if validating a bundle, use the version specified in the bundle.
  • validate against the most recent version by default (this means that we'll need a new major release for each STIX version, since behavior could be backwards-incompatible unless the specs are truly backwards compatible).
  • Allow users to specify an explicit version via a command line argument or function parameter.

from cti-stix-validator.

clenk avatar clenk commented on June 12, 2024

At first I was confused by "multiple submodules for the same repo" - now I understand you mean git submodules, not python submodules.

from cti-stix-validator.

gtback avatar gtback commented on June 12, 2024

I updated my comment above to be a bit more clear 😀

from cti-stix-validator.

gtback avatar gtback commented on June 12, 2024

@clenk: Do you think it's important to figure this out before we release a 1.0, in case it causes significant internal refactoring of the public API?

from cti-stix-validator.

gtback avatar gtback commented on June 12, 2024

We'll need a major version bump anyway when we switch from validating STIX 2.0 by default to validating STIX 2.1 by default, so there's no reason this needs to be done prior to 1.0.

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.