misp-objects/schema.json

112 lines
2.1 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"
}
},
"required_value": {
"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-03-07 11:09:55 +01:00
"description": {
"type": "string"
}
},
"required": [
"misp-attribute",
2017-07-03 16:32:11 +02:00
"ui-priority"
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"
]
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
]
}