Open Tectu opened 2 years ago
Draft: f86a48d189767b3e57028830738d23b5de2834a0
I'm not too happy with this initial draft.
I think it might be better to have a separate/dedicated function in html::form
to perform this check. This separate function could return/provide more detailed information such as the list of fields which are missing values. A consumer could then use this information to notify the user appropriately about the missing required fields.
The
malloy::html::form
class should perform check regarding all fields marked asrequired
when parsing viaparse()
.