Adding a static method called getFlattenedParamValidationErrors to JuttleView. The strings were pulled from the Jut 1.0 product.
Currently if invalid parameters are passed into a view constructor, it throws an error object describing the validations that failed. However, the error objects only contain codes and additional info but no human-friendly string that describes the validation error.
These human-friendly error messages are necessary so that juttle-viz consumers, namely outrigger via juttle-client-library, can display them to the end-user.
I am not 100% sure what layer these messages should be generated in.
Adding a static method called
getFlattenedParamValidationErrors
toJuttleView
. The strings were pulled from the Jut 1.0 product.Currently if invalid parameters are passed into a view constructor, it throws an error object describing the validations that failed. However, the error objects only contain codes and additional info but no human-friendly string that describes the validation error.
These human-friendly error messages are necessary so that juttle-viz consumers, namely outrigger via juttle-client-library, can display them to the end-user.
I am not 100% sure what layer these messages should be generated in.
@mnibecker