This PR moves the sections of BindInputs and ScanArgs that validate the arguments from the user to the typeinfo package. The new functions return the typeToValue map that is used by BindInputs and ScanArgs.
The error messages returned by the two validation functions are made consistent and the two functions are changed to match in shape even though they are subtly different.
A test is also added for nil maps as arguments, since this was not previously checked.
This PR moves the sections of
BindInputs
andScanArgs
that validate the arguments from the user to thetypeinfo
package. The new functions return thetypeToValue
map that is used byBindInputs
andScanArgs
.The error messages returned by the two validation functions are made consistent and the two functions are changed to match in shape even though they are subtly different.
A test is also added for nil maps as arguments, since this was not previously checked.