Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfeng-db committed May 15, 2024
1 parent 81a8969 commit aef12aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/customizable_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit aef12aa

Please sign in to comment.