araera111 / mysql-to-zod

convert mysql schemas into Zod Schemas
https://mysql-to-zod.pages.dev/
2 stars 1 forks source link

dev v2.2.5 : globalSchema.ts has redundant EOL #169

Closed TonyGravagno closed 1 month ago

TonyGravagno commented 1 month ago

Trivial issue after recent dev changes.
Note that extra "\n" (EOL) characters aren't removed from globalSchema constant. They were before recent changes.

image

araera111 commented 1 month ago

The fix has been merged due to #176. We have changed the method for retrieving key-value pairs, opting to count the number of tabs instead of performing multiple line breaks. If this approach still causes issues, we may need to handle TypeScript's AST more thoroughly. For now, it seems to be handling the cases you submitted without any problems.

araera111 commented 1 month ago

If you encounter any errors again, please feel free to reopen the issue.