fix: error of naming packet

This commit is contained in:
2026-03-23 16:08:06 +03:00
parent db2ba03a47
commit 14ef3cf2c5
+2
View File
@@ -44,6 +44,8 @@ func main() {
if pkgName == "." || pkgName == "" {
pkgName = msgs[0].PackageName
}
// Replace hyphens with underscores for valid Go package names
pkgName = strings.ReplaceAll(pkgName, "-", "_")
src, err := generator.GenerateGoSchema(schema, pkgName)
if err != nil {