Updating JSON Schema

pull/15/head
Nicolas Bareil 2018-06-04 14:30:40 +02:00
parent e95fe269f0
commit 7fc9b3f254
1 changed files with 216 additions and 1 deletions

View File

@ -1215,6 +1215,161 @@ or parsing.
} }
} }
}, },
"object": {
"type": "object",
"additionalProperties": false,
"properties": {
"uuid": {
"type": "string"
},
"name": {
"type": "string"
},
"event_id": {
"type": "string"
},
"description": {
"type": "string"
},
"template_uuid": {
"type": "string"
},
"template_version": {
"type": "string"
},
"id": {
"type": "string"
},
"meta-category": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"timestamp": {
"type": "string"
},
"distribution": {
"type": "string"
},
"sharing_group_id": {
"type": "string"
},
"comment": {
"type": "string"
},
"ObjectReference": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/defs/objectreference"
}
},
"Attribute": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/defs/attribute"
}
}
}
},
"sighthing": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"attribute_id": {
"type": "string"
},
"event_id": {
"type": "string"
},
"source": {
"type": "string"
},
"type": {
"type": "string"
},
"org_id": {
"type": "string"
},
"date_sighting": {
"type": "string"
},
"uuid": {
"type": "string"
},
"Organisation": {
"$ref": "#/defs/organisation"
}
}
},
"organisation": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"uuid": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"objectreference": {
"type": "object",
"additionalProperties": false,
"properties": {
"deleted": {
"type": "boolean"
},
"object_id": {
"type": "string"
},
"event_id": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"id": {
"type": "string"
},
"uuid": {
"type": "string"
},
"type": {
"type": "string"
},
"referenced_id": {
"type": "string"
},
"referenced_uuid": {
"type": "string"
},
"referenced_type": {
"type": "string"
},
"relationship_type": {
"type": "string"
},
"object_uuid": {
"type": "string"
},
"comment": {
"type": "string"
},
"Object": {
"$ref": "#/defs/object"
}
}
},
"attribute": { "attribute": {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
@ -1222,6 +1377,9 @@ or parsing.
"id": { "id": {
"type": "string" "type": "string"
}, },
"old_id": {
"type": "string"
},
"type": { "type": {
"type": "string" "type": "string"
}, },
@ -1237,6 +1395,21 @@ or parsing.
"event_id": { "event_id": {
"type": "string" "type": "string"
}, },
"event_uuid": {
"type": "string"
},
"proposal_to_delete": {
"type": "boolean"
},
"validationIssue": {
"type": "boolean"
},
"Org": {
"$ref": "#/defs/organisation"
},
"org_id": {
"type": "string"
},
"distribution": { "distribution": {
"type": "string" "type": "string"
}, },
@ -1261,6 +1434,12 @@ or parsing.
"data": { "data": {
"type": "string" "type": "string"
}, },
"object_relation": {
"type": ["string", "null"]
},
"object_id": {
"type": "string"
},
"SharingGroup": { "SharingGroup": {
"$ref": "#/defs/sharing_group" "$ref": "#/defs/sharing_group"
}, },
@ -1271,9 +1450,23 @@ or parsing.
"$ref": "#/defs/attribute" "$ref": "#/defs/attribute"
} }
}, },
"Tag": { "Sighting": {
"type": "array", "type": "array",
"uniqueItems": true, "uniqueItems": true,
"items": {
"$ref": "#/defs/sighthing"
}
},
"Galaxy": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/defs/galaxy"
}
},
"Tag": {
"uniqueItems": true,
"type": "array",
"items": { "items": {
"$ref": "#/defs/tag" "$ref": "#/defs/tag"
} }
@ -1296,6 +1489,9 @@ or parsing.
"date": { "date": {
"type": "string" "type": "string"
}, },
"extends_uuid": {
"type": "string"
},
"threat_level_id": { "threat_level_id": {
"type": "string" "type": "string"
}, },
@ -1381,6 +1577,13 @@ or parsing.
"$ref": "#/defs/galaxy" "$ref": "#/defs/galaxy"
} }
}, },
"Object": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/defs/object"
}
},
"Tag": { "Tag": {
"type": "array", "type": "array",
"uniqueItems": true, "uniqueItems": true,
@ -1408,6 +1611,9 @@ or parsing.
}, },
"hide_tag": { "hide_tag": {
"type": "boolean" "type": "boolean"
},
"user_id": {
"type": "string"
} }
} }
}, },
@ -1433,6 +1639,12 @@ or parsing.
"version": { "version": {
"type": "string" "type": "string"
}, },
"icon": {
"type": "string"
},
"namespace": {
"type": "string"
},
"GalaxyCluster": { "GalaxyCluster": {
"type": "array", "type": "array",
"uniqueItems": true, "uniqueItems": true,
@ -1467,6 +1679,9 @@ or parsing.
"galaxy_id": { "galaxy_id": {
"type": "string" "type": "string"
}, },
"version": {
"type": "string"
},
"source": { "source": {
"type": "string" "type": "string"
}, },