We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-transform
optional
Suppose I want an optional date as an argument. The code
#import "@preview/valkyrie:0.2.1" as z #let schema = z.dictionary(( date: z.date(optional: true, pre-transform: z.coerce.date) )) #z.parse((date: none), schema)
results in the error Unknown date of type 'none' accepts: datetime, str, int, and object
Unknown date of type 'none' accepts: datetime, str, int, and object
The text was updated successfully, but these errors were encountered:
Oops, just saw that #33 was closed yesterday.
Sorry, something went wrong.
Would adding an option to skip pre-transforms if defaulted by amenable?
I'm not familiar with the package as this my first time using it, so I don't really have an opinion on that
No branches or pull requests
Suppose I want an optional date as an argument. The code
results in the error
Unknown date of type 'none' accepts: datetime, str, int, and object
The text was updated successfully, but these errors were encountered: