Skip to content

Commit

Permalink
Fix recursive error with slice of pointers (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
anilsenay authored Oct 10, 2024
1 parent 8f719e1 commit 2caeef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/definition/definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (g DefinitionGenerator) createStructDefinitions(structType reflect.Type) ma
},
IsRequired: g.isRequired(field),
}
if structType == field.Type.Elem() {
if structType == field.Type.Elem().Elem() {
continue // prevent recursion
}
g.CreateDefinition(reflect.New(field.Type.Elem().Elem()).Elem().Interface())
Expand Down

0 comments on commit 2caeef5

Please sign in to comment.