-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Set options as a required option when a default value is set #18709
Comments
Grepping for the pattern:
|
Can we run a quick one liner for this or do we need to check each of them individually? |
I wasn't expecting this much options set like this :/. A couple of examples that come in mind right now:
For this one, changing the required flag to
This one is a bit different, since the default value is an empty string, I would be inclined to remove the default value and keep the required flag to |
Hi! This issue has been left open with no activity for a while now. We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. |
Just to drop my thoughts here, it would be super nice to have this for options that are required and have a default value, but I do think there's definitely going to be cases where the option has a default value but isn't required, thinking maybe a password has a very common value which would be nice to have as a default but it may also possible to login without a password as an example In other words, I don't think there's much we can do beyond check them one by one 😅 |
This is not really a bug but more coding practice, but some modules like this one have options with a default value set and the required flag set to false. It makes more sense to have options set as required in this case.
This not a big deal, but fixing this will avoid copy/pasting this over and over (e.g. here).
The text was updated successfully, but these errors were encountered: