Skip to content

Show values in case of error (for some checks) #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Show values in case of error (for some checks) #122

wants to merge 1 commit into from

Conversation

doits
Copy link

@doits doits commented Dec 12, 2014

Too see what value is causing the error. Helps in debugging.

I added the values just for some constraints (I needed urgently). If this approach is OK I can add them to all/more constraints. (And add some tests etc.).

{
$this->errors[] = array(
'property' => $path,
'message' => $message
'message' => $message,
'value' => print_r($value, true)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@doits Given that the property is provided in an error message, would using a tool like jq be better for debugging the JSON file data?

@bighappyface
Copy link
Collaborator

Closed due to age

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants