122 lines
2.4 KiB
JSON
122 lines
2.4 KiB
JSON
{
|
|
"required": [
|
|
"namespace",
|
|
"description",
|
|
"version",
|
|
"predicates"
|
|
],
|
|
"properties": {
|
|
"type": {
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"uniqueItems": true,
|
|
"type": "array"
|
|
},
|
|
"refs": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"uniqueItems": true,
|
|
"type": "array"
|
|
},
|
|
"values": {
|
|
"items": {
|
|
"$ref": "#/defs/entry",
|
|
"type": "object"
|
|
},
|
|
"uniqueItems": true,
|
|
"type": "array"
|
|
},
|
|
"predicates": {
|
|
"items": {
|
|
"$ref": "#/defs/predicate",
|
|
"type": "object"
|
|
},
|
|
"uniqueItems": true,
|
|
"type": "array"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"expanded": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"defs": {
|
|
"required": [
|
|
"predicate"
|
|
],
|
|
"entry": {
|
|
"properties": {
|
|
"entry": {
|
|
"items": {
|
|
"required": [
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"numerical_value": {
|
|
"type": "number"
|
|
},
|
|
"expanded": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object"
|
|
},
|
|
"uniqueItems": true,
|
|
"type": "array"
|
|
},
|
|
"predicate": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object"
|
|
},
|
|
"predicate": {
|
|
"required": [
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"expanded": {
|
|
"type": "string"
|
|
},
|
|
"numerical_value": {
|
|
"type": "number"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"colour": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object"
|
|
}
|
|
},
|
|
"id": "https://www.github.com/MISP/misp-taxonomies/schema.json",
|
|
"title": "Validator for misp-taxonomies",
|
|
"$schema": "http://json-schema.org/schema#"
|
|
}
|