41 lines
1.3 KiB
JSON
41 lines
1.3 KiB
JSON
|
{
|
||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
|
"title": "JSON Schema WMBasic config file",
|
||
|
"description": "WMBasic config.yml linter",
|
||
|
"type": "object",
|
||
|
"additionalProperties": false,
|
||
|
"properties": {
|
||
|
"namespace": {
|
||
|
"type": "string",
|
||
|
"description": "suffix for mongo db database and part of api url, can be overwritten in database project settings"
|
||
|
},
|
||
|
"meta": {
|
||
|
"type": "object",
|
||
|
"description": "meta object used for admin ui configuration",
|
||
|
"additionalProperties": true,
|
||
|
"properties": {
|
||
|
"imageUrl": {
|
||
|
"type": "string",
|
||
|
"description": "project's teaser image url shown in admin ui"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"collections": {
|
||
|
"oneOf": [
|
||
|
{
|
||
|
"$comment": "for include tag",
|
||
|
"type": "string"
|
||
|
},
|
||
|
{
|
||
|
"type": "array",
|
||
|
"description": "list of collections in this project",
|
||
|
"items": {
|
||
|
"$ref": "collection.json"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"required": ["namespace"]
|
||
|
}
|