You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm using nodejs imports in my repo: https://nodejs.org/api/packages.html#imports, which mean that the imports start with #.
Say i have the following model:
/// @zod.import(["import { myFunction } from '#functions/myFunction'"])
model RandomModel {
randomField String /// @zod.custom.use(myFunction)
}
When i try to generate, i get this error:
[@zod generator error]: import statement is not valid. Check for unusal characters. [Error Location]: Model: 'RandomModel'.
Describe the solution you'd like
Id like to be able to use imports that start with a #. I assume the # character needs to be whitelisted from whatever check is being done on the import statements
Thanks :)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm using nodejs imports in my repo: https://nodejs.org/api/packages.html#imports, which mean that the imports start with
#
.Say i have the following model:
When i try to generate, i get this error:
[@zod generator error]: import statement is not valid. Check for unusal characters. [Error Location]: Model: 'RandomModel'.
Describe the solution you'd like
Id like to be able to use imports that start with a
#
. I assume the#
character needs to be whitelisted from whatever check is being done on the import statementsThanks :)
The text was updated successfully, but these errors were encountered: