misp-objects/schema_objects.json

118 lines
2.3 KiB
JSON
Raw Normal View History

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"
}
},
"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"
},
"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",
"internal",
"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"
},
"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",
"name",
"uuid"
2017-02-13 11:15:51 +01:00
]
}