From 3f9e4e582058626900e9a5fb82126a29f7c97fde Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Thu, 20 Oct 2016 14:30:58 -0400 Subject: [PATCH] Add field constraints, though not yet implemented in goodtables. See: https://github.com/frictionlessdata/goodtables-py/issues/55 --- datapackage.json | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/datapackage.json b/datapackage.json index 7e48574..9b75f80 100644 --- a/datapackage.json +++ b/datapackage.json @@ -12,21 +12,31 @@ "format": "default", "name": "order", "title": "Order", - "type": "integer" + "type": "integer", + "constraints": { + "required": true, + "unique": true + } }, { "description": "", "format": "default", "name": "project", "title": "Project Name", - "type": "string" + "type": "string", + "constraints": { + "required": true + } }, { "description": "", "format": "default", "name": "person", "title": "Person", - "type": "string" + "type": "string", + "constraints": { + "required": true + } }, { "description": "", @@ -40,14 +50,20 @@ "format": "default", "name": "date", "title": "Date", - "type": "date" + "type": "date", + "constraints": { + "required": true + } }, { "description": "", "format": "default", "name": "is_onboarding", "title": "Onboarding?", - "type": "boolean" + "type": "boolean", + "constraints": { + "required": true + } } ] }