Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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