Skip to content

Commit b191cde

Browse files
committed
Merge branch 'feat/exclude-package-go-type' into livesession
2 parents 1738186 + db2c6aa commit b191cde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/codegen/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func GenerateGoSchema(sref *openapi3.SchemaRef, path []string) (Schema, error) {
321321
currentPackage := globalState.options.PackageName
322322
if globalState.options.OutputOptions.ExcludePackageGoType {
323323
parts := strings.Split(typeName, ".")
324-
if parts[0] == currentPackage || len(parts) == 1 {
324+
if parts[0] == currentPackage {
325325
exludeCurrentPackage = true
326326
}
327327
}

0 commit comments

Comments
 (0)