Comments (6)
@clenk, @ATweedMITRE: can one of you look at this?
from cti-stix-validator.
'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.
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.
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.
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.
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)
- [CS03] Network Traffic Protocol Property and Extensions
- SDOs should not be allowed in in Observed Data's object_refs property
- 2.1 validator does not handle top-level extension definition properly HOT 5
- malware-analysis schema requires 'result', spec says 'av_result'. HOT 1
- windows-registry-key SCO doesn't have to start with a hive portion
- STIX Cyber-observable Objects SHOULD use UUIDv5. It is not a MUST. HOT 1
- SCOs are allowed in Observable Containers as per Section 2.13 of the spec - so the validator must allow it HOT 1
- KeyError Exceptions in validate_instance HOT 3
- Get string representation of validation results the way print_results() displays HOT 1
- UUIDv5 validation HOT 2
- draft7_format_checker is deprecated HOT 13
- 3.1.0 missing schemas HOT 3
- Better warning messages for open vocabs and relationship types
- Enhanced Interoperability Support
- TAXII Support?
- HTTPSConnectionPool Fatal Error HOT 1
- RefResolver deprecated HOT 17
- Outdated validation for Marking Definition HOT 2
- Validation fails if artifact.mime_type is not IANA registered mime-type
- Validator reports error for .zip domains
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-stix-validator.