{
"endpoints":[
{
"prefix":"api",
"name":"flash",
"timestamp":true,
"c":[
{
"name":"active",
"type":"boolean",
"db_validations":[{"required":true},{ "unique": true}],
"joi_validations":["required()","bool()"]
},
{
"name":"work_from",
"type":"string",
"validations":[{"required":true}],
"joi_validations":["number()","string()"]
},
{
"name":"work_to",
"type":"string",
"validations":[{"required":true}],
"joi_validations":["number()","string()"]
}]
}
]
}
"name":"active",
"type":"boolean",
"db_validations":[{"required":true},{ "unique": true}], that validation based on Mongodb library
"joi_validations":["required()","bool()"] that validation based on Joi library