Minor: fix indexType definition in searchIndex spec (#18912)

* Minor: fix indexType definition in searchIndex spec

* Minor: fix indexType definition in searchIndex spec
This commit is contained in:
Sriharsha Chintalapani 2024-12-04 08:50:01 -08:00 committed by GitHub
parent e44ca06173
commit 0629750e0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 12 deletions

View File

@ -36,6 +36,11 @@
"description": "Contains key/value pair of searchIndex settings.",
"$ref": "../../entity/data/searchIndex.json#/definitions/searchIndexSettings"
},
"indexType": {
"description": "Whether the entity is index or index template.",
"$ref": "../../entity/data/searchIndex.json#/definitions/indexType",
"default": "Index"
},
"owners": {
"description": "Owners of this SearchIndex",
"$ref": "../../type/entityReferenceList.json",
@ -74,11 +79,6 @@
"type": "string",
"minLength": 1,
"maxLength": 32
},
"indexType": {
"description": "Whether the entity is index or index template.",
"$ref": "../../entity/data/searchIndex.json#/properties/indexType",
"default": "Index"
}
},
"required": ["name", "service", "fields"],

View File

@ -35,6 +35,12 @@
},
"additionalProperties": false
},
"indexType": {
"description": "Whether the entity is index or index template.",
"type": "string",
"enum": ["Index", "IndexTemplate"],
"default": "Index"
},
"dataType": {
"javaType": "org.openmetadata.schema.type.SearchIndexDataType",
"description": "This enum defines the type of data stored in a searchIndex.",
@ -200,11 +206,17 @@
"description": "Contains key/value pair of searchIndex settings.",
"$ref": "#/definitions/searchIndexSettings"
},
"indexType": {
"description": "Whether the entity is index or index template.",
"$ref": "#/definitions/indexType",
"default": "Index"
},
"sampleData": {
"description": "Sample data for a searchIndex.",
"$ref": "#/definitions/searchIndexSampleData",
"default": null
},
"owners": {
"description": "Owners of this searchIndex.",
"$ref": "../../type/entityReferenceList.json"
@ -262,13 +274,6 @@
"type": "string",
"minLength": 1,
"maxLength": 32
},
"indexType": {
"description": "Whether the entity is index or index template.",
"type": "string",
"javaType": "org.openmetadata.schema.entity.type.SearchIndexType",
"enum": ["Index", "IndexTemplate"],
"default": "Index"
}
},
"required": [