Skip to content

Instantly share code, notes, and snippets.

@pezholio
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pezholio/9720306 to your computer and use it in GitHub Desktop.
Save pezholio/9720306 to your computer and use it in GitHub Desktop.
all_constraints
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 5 columns, instead of 6. in line 5.
Username,Age,Height,Weight,Secret
,20,,,
derp,20,,,
derpderpington,20,,,
derp-derp,20,,,
derpina,20,,,,
derpina,25,,
derpette,4,,600,
grandderp,103,13,,
{
"fields": [
{
"name": "Username",
"constraints": {
"required": true,
"unique": true,
"minLength": 5,
"maxLength": 10,
"pattern": "^[A-Za-z0-9_]*$"
}
},
{
"name": "Age",
"constraints": {
"type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
"minimum": "13",
"maximum": "99"
}
},
{
"name": "Height",
"constraints": {
"type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
"minimum": "20"
}
},
{
"name": "Weight",
"constraints": {
"type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
"maximum": "500"
}
},
{
"name": "Password"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment