This commit is contained in:
parent
dddd5229d5
commit
771ee5e73c
@ -9,6 +9,10 @@
|
||||
"type": "string",
|
||||
"description": "collection name, part of api path"
|
||||
},
|
||||
"defaultLanguage": {
|
||||
"type": "string",
|
||||
"description": "default language for database text index"
|
||||
},
|
||||
"uploadPath": {
|
||||
"type": "string",
|
||||
"description": "relative to config.yml, path for file uploads"
|
||||
@ -182,6 +186,21 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"type": "array",
|
||||
"description": "indexes of collection",
|
||||
"items": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$comment": "for include tag",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"$ref": "index.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name", "permissions"]
|
||||
|
45
schemas/api-config/index.json
Normal file
45
schemas/api-config/index.json
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "JSON Schema tibi-server index configuration",
|
||||
"description": "tibi-server index linter",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "name of index"
|
||||
},
|
||||
"key": {
|
||||
"type": "array",
|
||||
"description": "array of keys, minus in front for reverse order",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"unique": {
|
||||
"type": "boolean",
|
||||
"description": "unique index"
|
||||
},
|
||||
"dropDups": {
|
||||
"type": "boolean",
|
||||
"description": "drop duplicates"
|
||||
},
|
||||
"background": {
|
||||
"type": "boolean",
|
||||
"description": "build index in background"
|
||||
},
|
||||
"sparse": {
|
||||
"type": "boolean",
|
||||
"description": "sparse index"
|
||||
},
|
||||
"defaultLanguage": {
|
||||
"type": "string",
|
||||
"description": "default language for text index"
|
||||
},
|
||||
"languageOverride": {
|
||||
"type": "string",
|
||||
"description": "language override field name"
|
||||
}
|
||||
},
|
||||
"required": ["key"]
|
||||
}
|
Loading…
Reference in New Issue
Block a user