diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/resources/glossary/GlossaryResource.java b/openmetadata-service/src/main/java/org/openmetadata/service/resources/glossary/GlossaryResource.java index c4469c4d935..3de852e51db 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/resources/glossary/GlossaryResource.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/resources/glossary/GlossaryResource.java @@ -72,7 +72,7 @@ import org.openmetadata.service.util.ResultList; @Collection(name = "glossaries", order = 6) // Initialize before GlossaryTerm and after Classification and Tags public class GlossaryResource extends EntityResource { public static final String COLLECTION_PATH = "v1/glossaries/"; - static final String FIELDS = "owner,tags,reviewers,usageCount,termCount,domain"; + static final String FIELDS = "owner,tags,reviewers,usageCount,termCount,domain,extension"; public GlossaryResource(CollectionDAO dao, Authorizer authorizer) { super(Glossary.class, new GlossaryRepository(dao), authorizer); diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/resources/glossary/GlossaryTermResource.java b/openmetadata-service/src/main/java/org/openmetadata/service/resources/glossary/GlossaryTermResource.java index b00aa05f749..e471ba866f3 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/resources/glossary/GlossaryTermResource.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/resources/glossary/GlossaryTermResource.java @@ -73,7 +73,7 @@ import org.openmetadata.service.util.ResultList; @Collection(name = "glossaryTerms", order = 7) // Initialized after Glossary, Classification, and Tags public class GlossaryTermResource extends EntityResource { public static final String COLLECTION_PATH = "v1/glossaryTerms/"; - static final String FIELDS = "children,relatedTerms,reviewers,owner,tags,usageCount,domain"; + static final String FIELDS = "children,relatedTerms,reviewers,owner,tags,usageCount,domain,extension"; @Override public GlossaryTerm addHref(UriInfo uriInfo, GlossaryTerm term) { diff --git a/openmetadata-spec/src/main/resources/json/schema/api/data/createGlossary.json b/openmetadata-spec/src/main/resources/json/schema/api/data/createGlossary.json index 7fcf26f9a24..0c963cee46c 100644 --- a/openmetadata-spec/src/main/resources/json/schema/api/data/createGlossary.json +++ b/openmetadata-spec/src/main/resources/json/schema/api/data/createGlossary.json @@ -50,6 +50,10 @@ "domain" : { "description": "Fully qualified name of the domain the Glossary belongs to.", "type": "string" + }, + "extension": { + "description": "Entity extension data with custom attributes added to the entity.", + "$ref": "../../type/basic.json#/definitions/entityExtension" } }, "required": ["name", "description"], diff --git a/openmetadata-spec/src/main/resources/json/schema/api/data/createGlossaryTerm.json b/openmetadata-spec/src/main/resources/json/schema/api/data/createGlossaryTerm.json index 06f990f0c8d..5eb70c5d359 100644 --- a/openmetadata-spec/src/main/resources/json/schema/api/data/createGlossaryTerm.json +++ b/openmetadata-spec/src/main/resources/json/schema/api/data/createGlossaryTerm.json @@ -75,6 +75,10 @@ "description" : "Glossary terms that are children of this term are mutually exclusive. When mutually exclusive is `true` only one term can be used to label an entity from this group. When mutually exclusive is `false`, multiple terms from this group can be used to label an entity.", "type" : "boolean", "default" : "false" + }, + "extension": { + "description": "Entity extension data with custom attributes added to the entity.", + "$ref": "../../type/basic.json#/definitions/entityExtension" } }, "required": ["glossary", "name", "description"], diff --git a/openmetadata-spec/src/main/resources/json/schema/entity/data/glossary.json b/openmetadata-spec/src/main/resources/json/schema/entity/data/glossary.json index 476e38fa74e..c2d8789fd62 100644 --- a/openmetadata-spec/src/main/resources/json/schema/entity/data/glossary.json +++ b/openmetadata-spec/src/main/resources/json/schema/entity/data/glossary.json @@ -3,6 +3,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Glossary", "description": "This schema defines the Glossary entity. A Glossary is collection of hierarchical GlossaryTerms.", + "$comment": "@om-entity-type", "type": "object", "javaType": "org.openmetadata.schema.entity.data.Glossary", "javaInterfaces": ["org.openmetadata.schema.EntityInterface"], @@ -98,6 +99,10 @@ }, "votes" : { "$ref": "../../type/votes.json" + }, + "extension": { + "description": "Entity extension data with custom attributes added to the entity.", + "$ref": "../../type/basic.json#/definitions/entityExtension" } }, "required": ["id", "name", "description"], diff --git a/openmetadata-spec/src/main/resources/json/schema/entity/data/glossaryTerm.json b/openmetadata-spec/src/main/resources/json/schema/entity/data/glossaryTerm.json index 314826ffbaa..78374291f3a 100644 --- a/openmetadata-spec/src/main/resources/json/schema/entity/data/glossaryTerm.json +++ b/openmetadata-spec/src/main/resources/json/schema/entity/data/glossaryTerm.json @@ -3,6 +3,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "GlossaryTerm", "description": "This schema defines te Glossary term entities.", + "$comment": "@om-entity-type", "type": "object", "javaType": "org.openmetadata.schema.entity.data.GlossaryTerm", "javaInterfaces": ["org.openmetadata.schema.EntityInterface"], @@ -140,6 +141,10 @@ "type" : "boolean", "default" : "false" }, + "extension": { + "description": "Entity extension data with custom attributes added to the entity.", + "$ref": "../../type/basic.json#/definitions/entityExtension" + }, "domain" : { "description": "Domain the Glossary Term belongs to. When not set, the Glossary TErm inherits the domain from the Glossary it belongs to.", "$ref": "../../type/entityReference.json"