go-rest accepts nil values for seemingly every field, regardless of the Type specified in the rule. This leads to panics if the user does a type assertion in InputHandler functions or other code.
It doesn't seem like there are many use cases for intentionally allowing null inputs if the type is e.g. rest.String or rest.Map.
go-rest accepts
nilvalues for seemingly every field, regardless of theTypespecified in the rule. This leads to panics if the user does a type assertion inInputHandlerfunctions or other code.It doesn't seem like there are many use cases for intentionally allowing
nullinputs if the type is e.g.rest.Stringorrest.Map.