Open Jesterovskiy opened 6 years ago
@Jesterovskiy Hey there, did you manage to solve this issue? It looks like there haven't been any updates on this gem for a while. :)
@mzishtiaq gem 'oj', '3.3.6'
, I don't have time to fix it =(
@Jesterovskiy Let me guess: Your Gemfile.lock
contains multi_json
, right?
@mzishtiaq https://github.com/ohler55/oj/issues/441 you can start from this issue
@leoarnold yes, you right
Everyone affected: please also read this explanation: https://github.com/ohler55/oj/issues/441#issuecomment-355593741
There is actually a long history of effort to eliminate the usage of multi_json
in json-schema
, but sadly it looks like efforts have stalled: #339
@leoarnold Thanks for the detailed explanation. That was very helpful indeed.
@Jesterovskiy This might be solved when using multi_json
v1.13.0, see https://github.com/intridea/multi_json/pull/183
@leoarnold @Jesterovskiy I can confirm that this has solved the problem and it's working now.
I'm trying to ping @iainbeeston to merge his PR. I think, that multi-JSON not needed.
When I updated Oj gem I get issue: JSON::ParserError: Empty input at line 1, column 1 [parse.c:926] This is because in new Oj version, for line https://github.com/ruby-json-schema/json-schema/blob/c12f6000795cc0fdf8d17d97d5bf9c1b383037e4/lib/json-schema/validator.rb#L527 if you send string with path to JSON file for parsing, you get this exception