You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the schemas are written in draft-07 of JSON Schema, I had created a custom object in our STIX representation for which I had come up with the custom schema for validating.
Attached the schema and one of the sample JSON instance which is not getting validated correctly.
Validation Output:
{
"messages": {
"errors": [
"x-signal--f9d5de15-7a32-94bd-7e62-e418b754fe6f: id: 'x-signal--f9d5de15-7a32-94bd-7e62-e418b754fe6f' does not match the id format ([object-type]--[UUID])"
]
}
}
Expected Validation Output should also show that the required property "x_hash_id" is not present along with the above 'id' error.
Question: Does the Stix2-Validator framework support 'if-then' construct? If not could you please let me know how one can achieve the value based check and have specific properties as required.
Thanks and Regards,
Santosh
The text was updated successfully, but these errors were encountered:
Since the schemas are written in draft-07 of JSON Schema, I had created a custom object in our STIX representation for which I had come up with the custom schema for validating.
Attached the schema and one of the sample JSON instance which is not getting validated correctly.
Schema: x_signal_schema_ifthen.txt
Test Json Input:
Invalid_EDR_Signal.txt
Validation Output:
{
"messages": {
"errors": [
"x-signal--f9d5de15-7a32-94bd-7e62-e418b754fe6f: id: 'x-signal--f9d5de15-7a32-94bd-7e62-e418b754fe6f' does not match the id format ([object-type]--[UUID])"
]
}
}
Expected Validation Output should also show that the required property "x_hash_id" is not present along with the above 'id' error.
Question: Does the Stix2-Validator framework support 'if-then' construct? If not could you please let me know how one can achieve the value based check and have specific properties as required.
Thanks and Regards,
Santosh
The text was updated successfully, but these errors were encountered: