GithubHelp home page GithubHelp logo

Comments (6)

gtback avatar gtback commented on June 1, 2024

@clenk, @ATweedMITRE: can one of you look at this?

from cti-stix-validator.

clenk avatar clenk commented on June 1, 2024

'version' is not a property mentioned in the current spec. It is not a common property, an observed-data property, nor a reserved property. Thus it is considered a custom property, and isn't required, but isn't prohibited either.

Please let me know if my reading of the spec is incorrect.

from cti-stix-validator.

jmgnc avatar jmgnc commented on June 1, 2024

Sorry, my bug report was incomplete. If you remove the version property, the stix validator says that it is a required property:

[-] Results for: observ.json
[X] STIX JSON: Invalid
[!] Warning: observed-data--7d69c058-034b-4769-9e7f-f7b080abf80d: {301} The Network Traffic object '0' should contain both the 'src_port' and 'dst_port' properties.
[X] observed-data--7d69c058-034b-4769-9e7f-f7b080abf80d: 'version' is a required property

So the validator is requiring you to add a custom property named version to pass.

from cti-stix-validator.

clenk avatar clenk commented on June 1, 2024

Thank you for the clarification. This should have been fixed in oasis-open/cti-stix2-json-schemas@e5b4766. Can you verify that you are using the latest version of the schemas?

from cti-stix-validator.

jmgnc avatar jmgnc commented on June 1, 2024

ok, looks like it was an out of date validator. I thought I had updated it, but clearly had not done it completely and/or correctly.

from cti-stix-validator.

gtback avatar gtback commented on June 1, 2024

The validator uses the schemas as a submodule, so if you're working from the git repositories, maybe you updated the validator, but not the version of the schemas?

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.