misp-taxonomies/schema.json

137 lines
2.6 KiB
JSON
Raw Normal View History

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",
"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"
},
"colour": {
"type": "string"
},
2017-07-19 17:47:19 +02:00
"value": {
"type": "string"
},
"required": [
"value"
]
}
}
},
"values": {
2017-07-19 17:47:19 +02:00
"type": "array",
"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"
]
}
},
"predicates": {
2017-07-19 17:47:19 +02:00
"type": "array",
"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"
},
"exclusive": {
"type": "boolean"
},
2017-07-19 17:47:19 +02:00
"required": [
"value"
]
}
}
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer"
},
"description": {
"type": "string"
},
"expanded": {
"type": "string"
},
"namespace": {
"type": "string"
},
"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
}