mirror of https://github.com/MISP/misp-objects
sort schema_objects
parent
3560b86101
commit
5f7f4b8e50
|
@ -1,67 +1,74 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/schema#",
|
"$schema": "http://json-schema.org/schema#",
|
||||||
"title": "Validator for misp-objects",
|
"additionalProperties": false,
|
||||||
"id": "https://www.github.com/MISP/misp-objects/schema.json",
|
|
||||||
"defs": {
|
"defs": {
|
||||||
"attribute": {
|
"attribute": {
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"misp-attribute": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"ui-priority": {
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
"categories": {
|
"categories": {
|
||||||
"type": "array",
|
|
||||||
"uniqueItems": true,
|
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"values_list": {
|
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"uniqueItems": true,
|
"uniqueItems": true
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"sane_default": {
|
"description": {
|
||||||
"type": "array",
|
|
||||||
"uniqueItems": true,
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
|
||||||
},
|
|
||||||
"multiple": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
},
|
||||||
"disable_correlation": {
|
"disable_correlation": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"to_ids": {
|
"misp-attribute": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"multiple": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"recommended": {
|
"recommended": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"description": {
|
"sane_default": {
|
||||||
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"uniqueItems": true
|
||||||
|
},
|
||||||
|
"to_ids": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"ui-priority": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"values_list": {
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"uniqueItems": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"misp-attribute",
|
"misp-attribute",
|
||||||
"ui-priority",
|
"ui-priority",
|
||||||
"description"
|
"description"
|
||||||
]
|
],
|
||||||
|
"type": "object"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"id": "https://www.github.com/MISP/misp-objects/schema.json",
|
||||||
"additionalProperties": false,
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"attributes": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"$ref": "#/defs/attribute",
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"meta-category": {
|
"meta-category": {
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
"enum": [
|
||||||
"file",
|
"file",
|
||||||
"network",
|
"network",
|
||||||
|
@ -70,40 +77,31 @@
|
||||||
"internal",
|
"internal",
|
||||||
"vulnerability",
|
"vulnerability",
|
||||||
"climate"
|
"climate"
|
||||||
]
|
],
|
||||||
|
"type": "string"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"description": {
|
"required": {
|
||||||
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"version": {
|
"type": "array",
|
||||||
"type": "integer"
|
"uniqueItems": true
|
||||||
|
},
|
||||||
|
"requiredOneOf": {
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"uniqueItems": true
|
||||||
},
|
},
|
||||||
"uuid": {
|
"uuid": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"attributes": {
|
"version": {
|
||||||
"type": "object",
|
"type": "integer"
|
||||||
"additionalProperties": {
|
|
||||||
"type": "object",
|
|
||||||
"$ref": "#/defs/attribute"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"requiredOneOf": {
|
|
||||||
"type": "array",
|
|
||||||
"uniqueItems": true,
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": {
|
|
||||||
"type": "array",
|
|
||||||
"uniqueItems": true,
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -113,5 +111,7 @@
|
||||||
"meta-category",
|
"meta-category",
|
||||||
"name",
|
"name",
|
||||||
"uuid"
|
"uuid"
|
||||||
]
|
],
|
||||||
|
"title": "Validator for misp-objects",
|
||||||
|
"type": "object"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue