You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This wouldn't be for the config.Validate() method (not likely due to custom validity logic), but rather to help reduce duplication in the validate_test.go file where (mostly due to ignorance) I am duplicating a lot of the checks:
ensure field member is not nil
ensure dereferenced field pointer is not of an unacceptable value
If we can dynamically fetch the field names (reflection), we should be able to switch on the type and/or value of each to apply specific checks.
This would come after #161 is worked out and likely after I've done further research.
The text was updated successfully, but these errors were encountered:
This wouldn't be for the
config.Validate()
method (not likely due to custom validity logic), but rather to help reduce duplication in thevalidate_test.go
file where (mostly due to ignorance) I am duplicating a lot of the checks:If we can dynamically fetch the field names (reflection), we should be able to switch on the type and/or value of each to apply specific checks.
This would come after #161 is worked out and likely after I've done further research.
The text was updated successfully, but these errors were encountered: