-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
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
Qute: tag parameter validation #21859
Comments
/cc @mkouba |
I'm making a Qute component library, the tag section would fit perfect if it had validation like a normal template does. |
Do you mean the call site validation? |
I believe that this was fixed long time ago, i.e. you can use
Yes, this one is a little bit more complicated because we don't have a way to validate sections in a template yet. It's on my TODO though ;-).
This should be supported, i.e. you should be able to use |
Yes! :) |
Description
ATM we can declare tag parameters like this:
But we have the following issues:
{@boolean img}
and got an error. I guess the wrapper type works fine as a workaround, but perhaps we could relax this and make it an alias?{user userValue img=booleanValue/}
{user userValue/}
without usingimg??
in the tag, and if we do call-site validation this might be disallowed because one parameter will be missing. So perhaps we need to allow default parameter values:Implementation ideas
No response
The text was updated successfully, but these errors were encountered: