From c493bf29f91649218741cafe994e499ba6eacde2 Mon Sep 17 00:00:00 2001 From: Chris Collins Date: Wed, 24 Jul 2024 11:04:28 -0400 Subject: [PATCH] fix(structuredProps) Fix casing bug in StructuredPropertiesValidator --- .../validation/StructuredPropertiesValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata-io/src/main/java/com/linkedin/metadata/structuredproperties/validation/StructuredPropertiesValidator.java b/metadata-io/src/main/java/com/linkedin/metadata/structuredproperties/validation/StructuredPropertiesValidator.java index cdbe2eb95a15d..25cbfb3a12ab3 100644 --- a/metadata-io/src/main/java/com/linkedin/metadata/structuredproperties/validation/StructuredPropertiesValidator.java +++ b/metadata-io/src/main/java/com/linkedin/metadata/structuredproperties/validation/StructuredPropertiesValidator.java @@ -356,7 +356,7 @@ private static Optional validateType( throw new RuntimeException(e); } String allowedEntityName = getValueTypeId(typeUrn); - if (typeValue.getEntityType().equals(allowedEntityName)) { + if (typeValue.getEntityType().equalsIgnoreCase(allowedEntityName)) { matchedAny = true; } }