very-express
Version:
based on json schema and openapi, generate Express RestApi server with mongoDb
58 lines • 946 B
JSON
{
"type": "object",
"x-documentConfig": {
"documentName": "User",
"dataIsolation": {
"field": "_id"
},
"restApi": {
"methods": [
"get",
"patch"
],
"noRelations": true,
"joinWhitelist": []
},
"isolate":{
"user": false
},
"uniqueIndex": [
[
"email"
]
]
},
"properties": {
"_id": {
"type": "string",
"x-format": "Primary",
"index": true
},
"email": {
"type": "string",
"format": "email",
"index": true
},
"name": {
"type": "string",
"maxLength": 64,
"required": true
},
"active": {
"type": "boolean",
"default": true,
"required": true
},
"locale": {
"type": "string",
"maxLength": 8
},
"profileErrors": {
"type": "string"
}
},
"required": [
"name",
"active"
]
}