failing line

15 views
Skip to first unread message

Tamar Shalom

unread,
Jul 20, 2017, 3:09:11 PM7/20/17
to Ruby JSON Schema Library
Is it possible to get outputted the exact line where the json failed validation? 

Iain Beeston

unread,
Jul 20, 2017, 3:44:25 PM7/20/17
to Ruby JSON Schema Library
I'm afraid that it's not. We have to parse the json text into a hash (or string or number) before we can validate it, and by parsing it we lose information about like breaks
Reply all
Reply to author
Forward
0 new messages