Skip to content

Commit

Permalink
Add field constraints, though not yet implemented in goodtables.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Oct 20, 2016
1 parent aa4b858 commit 3f9e4e5
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions datapackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand All @@ -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
}
}
]
}
Expand Down

0 comments on commit 3f9e4e5

Please sign in to comment.