Skip to content

Commit 69fc374

Browse files
1 parent 74f1fbc commit 69fc374

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: common/customizable_schema.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (s *CustomizableSchema) SetConflictsWith(value []string) *CustomizableSchem
194194
panic("SetConflictsWith cannot take in an empty list")
195195
}
196196
if s.pathContainsMultipleItemsList() {
197-
log.Printf("[DEBUG] ConflictsWith skipped for %v, path contains TypeList block with MaxItems not equal to 1", strings.Join(s.path, "."))
197+
log.Printf("[DEBUG] ConflictsWith skipped for %v, path contains TypeList block with MaxItems not equal to 1", getPrefixedValue(s.context.path, value))
198198
return s
199199
}
200200
s.Schema.ConflictsWith = getPrefixedValue(s.context.path, value)
@@ -206,7 +206,7 @@ func (s *CustomizableSchema) SetExactlyOneOf(value []string) *CustomizableSchema
206206
panic("SetExactlyOneOf cannot take in an empty list")
207207
}
208208
if s.pathContainsMultipleItemsList() {
209-
log.Printf("[DEBUG] ExactlyOneOf skipped for %v, path contains TypeList block with MaxItems not equal to 1", strings.Join(s.path, "."))
209+
log.Printf("[DEBUG] ExactlyOneOf skipped for %v, path contains TypeList block with MaxItems not equal to 1", getPrefixedValue(s.context.path, value))
210210
return s
211211
}
212212
s.Schema.ExactlyOneOf = getPrefixedValue(s.context.path, value)
@@ -218,7 +218,7 @@ func (s *CustomizableSchema) SetAtLeastOneOf(value []string) *CustomizableSchema
218218
panic("SetAtLeastOneOf cannot take in an empty list")
219219
}
220220
if s.pathContainsMultipleItemsList() {
221-
log.Printf("[DEBUG] AtLeastOneOf skipped for %v, path contains TypeList block with MaxItems not equal to 1", strings.Join(s.path, "."))
221+
log.Printf("[DEBUG] AtLeastOneOf skipped for %v, path contains TypeList block with MaxItems not equal to 1", getPrefixedValue(s.context.path, value))
222222
return s
223223
}
224224
s.Schema.AtLeastOneOf = getPrefixedValue(s.context.path, value)
@@ -230,7 +230,7 @@ func (s *CustomizableSchema) SetRequiredWith(value []string) *CustomizableSchema
230230
panic("SetRequiredWith cannot take in an empty list")
231231
}
232232
if s.pathContainsMultipleItemsList() {
233-
log.Printf("[DEBUG] SetRequiredWith skipped for %v, path contains TypeList block with MaxItems not equal to 1", strings.Join(s.path, "."))
233+
log.Printf("[DEBUG] SetRequiredWith skipped for %v, path contains TypeList block with MaxItems not equal to 1", getPrefixedValue(s.context.path, value))
234234
return s
235235
}
236236
s.Schema.RequiredWith = getPrefixedValue(s.context.path, value)

0 commit comments

Comments
 (0)