juttle / juttle-viz

Juttle Visualization Library
Apache License 2.0
11 stars 4 forks source link

juttle-view: add static method getFlattenedParamValidationErrors #39

Closed go-oleg closed 8 years ago

go-oleg commented 8 years ago

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.

@mnibecker

mattnibs commented 8 years ago

+1

go-oleg commented 8 years ago

opening this PR against and merging into the 0.3.x branch instead