Skip to content

Commit

Permalink
Change imports into aliases so they implement the base interface
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyMiller1998 authored and marcinromaszewicz committed Oct 27, 2022
1 parent 7b01009 commit e5ee43d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/codegen/schema.go
Expand Up @@ -268,6 +268,7 @@ func GenerateGoSchema(sref *openapi3.SchemaRef, path []string) (Schema, error) {
return outSchema, fmt.Errorf("invalid value for %q: %w", extPropGoType, err)
}
outSchema.GoType = typeName
outSchema.DefineViaAlias = true
return outSchema, nil
}

Expand Down

0 comments on commit e5ee43d

Please sign in to comment.