misp-objects/schema_relationships.json

65 lines
1.2 KiB
JSON
Raw Permalink Normal View History

2017-08-11 12:19:52 +02:00
{
"$schema": "http://json-schema.org/schema#",
"title": "Validator for misp-objects",
"id": "https://www.github.com/MISP/misp-objects/schema.json",
"defs": {
"value": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"format": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"opposite": {
"type": "string"
2017-08-11 12:19:52 +02:00
}
},
"required": [
"name",
"description",
"format"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer"
},
"values": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/defs/value"
}
},
"description": {
"type": "string"
},
"uuid": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"version",
"values",
"description",
"uuid",
"name"
]
}