Your schema seems suspect. Working from the samples on jsonschemalint.com I created a properties
container in the root for your properties, added description
and type
at the root and moved additionalProperties
to the root as well.
This validates your item on jsonschemalint.com:
{
"description": "StackOverflow test schema",
"type": "object",
"additionalProperties": false,
"properties": {
"category": {
"admin": {"type": "boolean"}
},
"username": {"type": "string"},
"password": {"type": "string"},
"name": {"type": "string"},
"email": {"type": "string", "format": "email"},
"phone": {"type": "string"},
"hours": {
"type": "array",
"items": {
"start": {"type": "string", "format": "date-time"},
"end": {"type": "string", "format": "date-time"}
}
}
}
}