aboutsummaryrefslogtreecommitdiffstats
path: root/search-data-service-app/src/main/resources/json/schema/document-field.schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'search-data-service-app/src/main/resources/json/schema/document-field.schema.json')
-rw-r--r--search-data-service-app/src/main/resources/json/schema/document-field.schema.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/search-data-service-app/src/main/resources/json/schema/document-field.schema.json b/search-data-service-app/src/main/resources/json/schema/document-field.schema.json
new file mode 100644
index 0000000..78d6cba
--- /dev/null
+++ b/search-data-service-app/src/main/resources/json/schema/document-field.schema.json
@@ -0,0 +1,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.onap.aai.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"
+ ]
+} \ No newline at end of file