From 16af9343866f09c0d699994a4b594412a6e8a175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 28 Jun 2017 11:18:10 +0200 Subject: [PATCH] Enforce meta-category --- objects/email/definition.json | 2 +- objects/geolocation/definition.json | 2 +- schema.json | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/objects/email/definition.json b/objects/email/definition.json index ca721c4..72af3a0 100644 --- a/objects/email/definition.json +++ b/objects/email/definition.json @@ -1,7 +1,7 @@ { "name": "email", "uuid": "a0c666e0-fc65-4be8-b48f-3423d788b552", - "meta-category": "email", + "meta-category": "network", "description": "Email object describing an email with meta-information", "version": 1, "attributes": { diff --git a/objects/geolocation/definition.json b/objects/geolocation/definition.json index 171eefe..9de4fa9 100644 --- a/objects/geolocation/definition.json +++ b/objects/geolocation/definition.json @@ -60,7 +60,7 @@ }, "version": 1, "description": "An object to describe a geographic location.", - "meta-category": "location", + "meta-category": "misc", "uuid": "fdd30d5f-6752-45ed-bef2-25e8ce4d8a3", "name": "geolocation" } diff --git a/schema.json b/schema.json index 9382fc5..ca25ba7 100644 --- a/schema.json +++ b/schema.json @@ -57,7 +57,14 @@ "additionalProperties": false, "properties": { "meta-category": { - "type": "string" + "type": "string", + "enum": [ + "file", + "network", + "financial", + "misc", + "internal" + ] }, "name": { "type": "string"