78d6cbac32b248ecc6c17616ec6adaeec0d396a2
[aai/search-data-service.git] / search-data-service / src / main / resources / json / schema / document-field.schema.json
1 {
2   "$schema": "http://json-schema.org/draft-04/schema#",
3   "title": "Document Field Schema",
4   "description": "Describes the structure of a document field for storage in a document store.",
5   "type": "object",
6   "javaType": "org.onap.aai.sa.rest.DocumentFieldSchema",
7   "properties": {
8     "name": {
9       "type": "string"
10     },
11     "data-type": {
12       "type": "string"
13     },
14     "format": {
15       "type": "string"
16     },
17     "searchable": {
18       "type": "boolean"
19     },
20     "search-analyzer": {
21       "type": "string"
22     },
23     "index-analyzer": {
24       "type": "string"
25     },
26     "sub-fields": {
27       "type": "array",
28       "items": {
29         "$ref": "document-field.schema.json"
30       }
31     }
32   },
33   "required": [
34     "name",
35     "data-type"
36   ]
37 }