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