From beed136e3c293f7505bd09e3962ef87e1f60dcd1 Mon Sep 17 00:00:00 2001 From: Daniel Herrero Date: Tue, 9 Jan 2018 14:54:18 +0100 Subject: [PATCH] item validations --- client/item/routes.json | 1 + services/item/common/models/item.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/item/routes.json b/client/item/routes.json index e703ed1de..d871114d6 100644 --- a/client/item/routes.json +++ b/client/item/routes.json @@ -2,6 +2,7 @@ "module": "item", "name": "Items", "icon": "/static/images/icon_item.png", + "validations" : true, "routes": [ { "url": "/item", diff --git a/services/item/common/models/item.json b/services/item/common/models/item.json index 0e396c0bf..070157c7e 100644 --- a/services/item/common/models/item.json +++ b/services/item/common/models/item.json @@ -14,7 +14,8 @@ "description": "Identifier" }, "name": { - "type": "String" + "type": "String", + "required": true }, "size": { "type": "Number"