2017-02-13 12:01:05 +01:00
|
|
|
{
|
2017-07-19 17:47:19 +02:00
|
|
|
"$schema": "http://json-schema.org/schema#",
|
|
|
|
"title": "Validator for misp-taxonomies",
|
|
|
|
"id": "https://www.github.com/MISP/misp-taxonomies/schema.json",
|
|
|
|
"defs": {
|
|
|
|
"entry": {
|
|
|
|
"type": "array",
|
2017-05-04 10:54:38 +02:00
|
|
|
"uniqueItems": true,
|
|
|
|
"items": {
|
2017-07-19 17:47:19 +02:00
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"numerical_value": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"expanded": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2017-08-16 09:58:19 +02:00
|
|
|
"colour": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2017-07-19 17:47:19 +02:00
|
|
|
"value": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"value"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2017-02-13 16:39:06 +01:00
|
|
|
},
|
2017-05-04 10:54:38 +02:00
|
|
|
"values": {
|
2017-07-19 17:47:19 +02:00
|
|
|
"type": "array",
|
2017-05-04 10:54:38 +02:00
|
|
|
"uniqueItems": true,
|
2017-07-19 17:47:19 +02:00
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"entry": {
|
|
|
|
"$ref": "#/defs/entry"
|
|
|
|
},
|
|
|
|
"predicate": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"predicate"
|
|
|
|
]
|
|
|
|
}
|
2017-05-04 10:54:38 +02:00
|
|
|
},
|
|
|
|
"predicates": {
|
2017-07-19 17:47:19 +02:00
|
|
|
"type": "array",
|
2017-05-04 10:54:38 +02:00
|
|
|
"uniqueItems": true,
|
2017-07-19 17:47:19 +02:00
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"numerical_value": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"colour": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"expanded": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"value": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2017-11-29 07:32:37 +01:00
|
|
|
"exclusive": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2017-07-19 17:47:19 +02:00
|
|
|
"required": [
|
|
|
|
"value"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
2017-05-04 10:54:38 +02:00
|
|
|
"version": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"expanded": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"namespace": {
|
|
|
|
"type": "string"
|
2017-02-13 16:39:06 +01:00
|
|
|
},
|
2017-11-29 07:32:37 +01:00
|
|
|
"exclusive": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2017-07-19 17:47:19 +02:00
|
|
|
"type": {
|
|
|
|
"type": "array",
|
|
|
|
"uniqueItems": true,
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"org",
|
|
|
|
"user",
|
|
|
|
"attribute",
|
|
|
|
"event"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"refs": {
|
|
|
|
"type": "array",
|
|
|
|
"uniqueItems": true,
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"predicates": {
|
|
|
|
"$ref": "#/defs/predicates"
|
|
|
|
},
|
|
|
|
"values": {
|
|
|
|
"$ref": "#/defs/values"
|
2017-02-13 12:01:05 +01:00
|
|
|
}
|
|
|
|
},
|
2017-07-19 17:47:19 +02:00
|
|
|
"required": [
|
|
|
|
"namespace",
|
|
|
|
"description",
|
|
|
|
"version",
|
|
|
|
"predicates"
|
|
|
|
]
|
2017-02-13 12:01:05 +01:00
|
|
|
}
|