Skip to content

Commit 83bd689

Browse files
jagregoryomissis
authored andcommitted
Log property scope when property has multiple types
1 parent f9d236c commit 83bd689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/generator/schema_generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ func (g *schemaGenerator) generateTypeInline(
606606
}
607607

608608
if len(t.Type) > 1 && !typeShouldBePointer {
609-
g.warner("Property has multiple types; will be represented as interface{} with no validation")
609+
g.warner(fmt.Sprintf("Property %s has multiple types; will be represented as interface{} with no validation", scope))
610610

611611
return codegen.EmptyInterfaceType{}, nil
612612
}

0 commit comments

Comments
 (0)