2017-02-13 11:15:51 +01:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/schema#",
|
|
|
|
"title": "Validator for misp-objects",
|
|
|
|
"id": "https://www.github.com/MISP/misp-objects/schema.json",
|
2017-03-07 11:09:55 +01:00
|
|
|
"defs": {
|
|
|
|
"attribute": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"misp-attribute": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2017-07-03 16:32:11 +02:00
|
|
|
"ui-priority": {
|
2017-03-07 11:09:55 +01:00
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"categories": {
|
|
|
|
"type": "array",
|
|
|
|
"uniqueItems": true,
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2017-09-17 12:43:42 +02:00
|
|
|
"values_list": {
|
2017-03-07 11:09:55 +01:00
|
|
|
"type": "array",
|
|
|
|
"uniqueItems": true,
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2017-03-13 08:22:28 +01:00
|
|
|
},
|
|
|
|
"sane_default": {
|
|
|
|
"type": "array",
|
|
|
|
"uniqueItems": true,
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2017-03-07 11:09:55 +01:00
|
|
|
},
|
|
|
|
"multiple": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2017-03-13 15:13:36 +01:00
|
|
|
"disable_correlation": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2017-03-17 17:31:09 +01:00
|
|
|
"to_ids": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2017-08-29 13:25:58 +02:00
|
|
|
"recommended": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2017-03-07 11:09:55 +01:00
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"misp-attribute",
|
2017-08-29 13:25:58 +02:00
|
|
|
"ui-priority",
|
|
|
|
"description"
|
2017-03-07 11:09:55 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-02-13 11:15:51 +01:00
|
|
|
"type": "object",
|
2017-03-07 11:09:55 +01:00
|
|
|
"additionalProperties": false,
|
2017-02-13 11:15:51 +01:00
|
|
|
"properties": {
|
|
|
|
"meta-category": {
|
2017-06-28 11:18:10 +02:00
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"file",
|
|
|
|
"network",
|
|
|
|
"financial",
|
|
|
|
"misc",
|
2018-07-10 07:39:58 +02:00
|
|
|
"internal",
|
2019-04-13 08:41:43 +02:00
|
|
|
"vulnerability",
|
|
|
|
"organization"
|
2017-06-28 11:18:10 +02:00
|
|
|
]
|
2017-02-13 11:15:51 +01:00
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2017-03-17 17:31:09 +01:00
|
|
|
"uuid": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2017-02-13 11:15:51 +01:00
|
|
|
"attributes": {
|
2017-03-07 11:09:55 +01:00
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "object",
|
|
|
|
"$ref": "#/defs/attribute"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"requiredOneOf": {
|
|
|
|
"type": "array",
|
|
|
|
"uniqueItems": true,
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": {
|
|
|
|
"type": "array",
|
|
|
|
"uniqueItems": true,
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2017-02-13 11:15:51 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"attributes",
|
|
|
|
"version",
|
|
|
|
"description",
|
|
|
|
"meta-category",
|
2017-03-17 17:31:09 +01:00
|
|
|
"name",
|
|
|
|
"uuid"
|
2017-02-13 11:15:51 +01:00
|
|
|
]
|
|
|
|
}
|