bee
bee copied to clipboard
Simplify HTTP API input parameters check
Currently, a parameters check is performed at the beginning of each HTTP handler. This parameter check is very repetitive and unnecessarily increases the size of the handler's body. Find a way to reduce the repetitive code. Consider using the https://github.com/go-playground/validator library or any other library that accomplishes this task.