misp-objects/schema.json

98 lines
1.9 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"
},
"misp-usage-frequency": {
"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"
},
2017-03-07 11:09:55 +01:00
"description": {
"type": "string"
}
},
"required": [
"misp-attribute",
"misp-usage-frequency"
]
}
},
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": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"version": {
"type": "integer"
},
"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"
]
}