misp-objects/schema_objects.json

118 lines
2.2 KiB
JSON
Raw Normal View History

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