Enforce meta-category

pull/15/head
Raphaël Vinot 2017-06-28 11:18:10 +02:00
parent c3186cbcb2
commit 16af934386
3 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "email", "name": "email",
"uuid": "a0c666e0-fc65-4be8-b48f-3423d788b552", "uuid": "a0c666e0-fc65-4be8-b48f-3423d788b552",
"meta-category": "email", "meta-category": "network",
"description": "Email object describing an email with meta-information", "description": "Email object describing an email with meta-information",
"version": 1, "version": 1,
"attributes": { "attributes": {

View File

@ -60,7 +60,7 @@
}, },
"version": 1, "version": 1,
"description": "An object to describe a geographic location.", "description": "An object to describe a geographic location.",
"meta-category": "location", "meta-category": "misc",
"uuid": "fdd30d5f-6752-45ed-bef2-25e8ce4d8a3", "uuid": "fdd30d5f-6752-45ed-bef2-25e8ce4d8a3",
"name": "geolocation" "name": "geolocation"
} }

View File

@ -57,7 +57,14 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"meta-category": { "meta-category": {
"type": "string" "type": "string",
"enum": [
"file",
"network",
"financial",
"misc",
"internal"
]
}, },
"name": { "name": {
"type": "string" "type": "string"