From aef12aac8b485d655f1c55ff6c0424a93a55bd1a Mon Sep 17 00:00:00 2001 From: edwardfeng-db Date: Wed, 15 May 2024 18:11:23 +0200 Subject: [PATCH] update --- common/customizable_schema.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/customizable_schema.go b/common/customizable_schema.go index 114d53b3d7..455635f295 100644 --- a/common/customizable_schema.go +++ b/common/customizable_schema.go @@ -194,7 +194,7 @@ func (s *CustomizableSchema) SetConflictsWith(value []string) *CustomizableSchem panic("SetConflictsWith cannot take in an empty list") } if s.pathContainsMultipleItemsList() { - log.Printf("[DEBUG] ConflictsWith skipped for %v, path contains TypeList block with MaxItems not equal to 1", strings.Join(s.path, ".")) + log.Printf("[DEBUG] ConflictsWith skipped for %v, path contains TypeList block with MaxItems not equal to 1", getPrefixedValue(s.context.path, value)) return s } s.Schema.ConflictsWith = getPrefixedValue(s.context.path, value) @@ -206,7 +206,7 @@ func (s *CustomizableSchema) SetExactlyOneOf(value []string) *CustomizableSchema panic("SetExactlyOneOf cannot take in an empty list") } if s.pathContainsMultipleItemsList() { - log.Printf("[DEBUG] ExactlyOneOf skipped for %v, path contains TypeList block with MaxItems not equal to 1", strings.Join(s.path, ".")) + log.Printf("[DEBUG] ExactlyOneOf skipped for %v, path contains TypeList block with MaxItems not equal to 1", getPrefixedValue(s.context.path, value)) return s } s.Schema.ExactlyOneOf = getPrefixedValue(s.context.path, value) @@ -218,7 +218,7 @@ func (s *CustomizableSchema) SetAtLeastOneOf(value []string) *CustomizableSchema panic("SetAtLeastOneOf cannot take in an empty list") } if s.pathContainsMultipleItemsList() { - log.Printf("[DEBUG] AtLeastOneOf skipped for %v, path contains TypeList block with MaxItems not equal to 1", strings.Join(s.path, ".")) + log.Printf("[DEBUG] AtLeastOneOf skipped for %v, path contains TypeList block with MaxItems not equal to 1", getPrefixedValue(s.context.path, value)) return s } s.Schema.AtLeastOneOf = getPrefixedValue(s.context.path, value) @@ -230,7 +230,7 @@ func (s *CustomizableSchema) SetRequiredWith(value []string) *CustomizableSchema panic("SetRequiredWith cannot take in an empty list") } if s.pathContainsMultipleItemsList() { - log.Printf("[DEBUG] SetRequiredWith skipped for %v, path contains TypeList block with MaxItems not equal to 1", strings.Join(s.path, ".")) + log.Printf("[DEBUG] SetRequiredWith skipped for %v, path contains TypeList block with MaxItems not equal to 1", getPrefixedValue(s.context.path, value)) return s } s.Schema.RequiredWith = getPrefixedValue(s.context.path, value)