Closed ThisuraThejith closed 1 year ago
You can override the whole stringifyer using:
Factory::setDefaultInstance(
(new Factory())->withParameterStringifier(new MyCustomStringifier())
);
You can also inspect each message individually, see this comment.
If that doesn't help you, feel free to reopen this!
Hi,
I'm trying to improve the validation error messages where the messages are coming truncated when there are more than five filter parameters are defined in an API
Sample error message:
In the above example you can see the error message is truncated by '...' at the end without showing the rest of the parameters.
This happens because of a code in the library.
There is a final class called 'ClusterStringifier'. In the ClusterStringifier.php file there is a method like following.
In here there is an instance of 'ArrayStringifier' initiated by passing the fourth parameter (which is the displaying items count) as 5. Because of that this is happening.
Is there anyway to customize this and show the entire set of parameter names in the error message?
Any help would be highly appreciated.