-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the cukunity wiki!
JSON max_depth not returning full responses on larger projects.
Updated the unity JSON lib that is built into the client setting the maxDepth restriction from 25 to 100 at serialisation time. The gem then started reporting issues that the max_depth exceeded 20 and wouldn't process the full JSON response, this can be overridden when calling parser by specifying ":max_depth => false" which should override the max_depth check.
Looks like there is a problem with has_property process the incorrect type
And it should have "active" property as "true" # cukunity-0.1.0/lib/cukunity/cucumber/step_definitions/get_scene_command_steps.rb:27 undefined method `has_property?' for #Array:0x007fb924b475a0 (NoMethodError)
current_gameobject isn't being set correctly, we made adjustments to traverse the JSON response and find deep Object which is working however that Object seems to contain the full JSON response.
Looks as though the response is coming back fine from the application however the gem doesn't look to be traversing the array but is instead using the ruby .find on the Object which only goes through the first elements and not the children.