This is my first PR here, please help me out with anything else that might be required.
This is my attempt at addressing #678. It works by injecting the javaName value from a parent node that uses $ref into a copy of the referenced node.
As a weirdness, without the changes to PropertyRule.java the updated test fails on line 69 hasProperty("javaReference"), which is confusing to me. A property with the name javaReference does exist on the actual object if you enter a debugger, but for some reason hamcrest.beans.PropertyUtil sees a different set of property names. I'm not sure why that is.
This is my first PR here, please help me out with anything else that might be required.
This is my attempt at addressing #678. It works by injecting the
javaName
value from a parent node that uses$ref
into a copy of the referenced node.As a weirdness, without the changes to
PropertyRule.java
the updated test fails on line 69hasProperty("javaReference")
, which is confusing to me. A property with the namejavaReference
does exist on the actual object if you enter a debugger, but for some reasonhamcrest.beans.PropertyUtil
sees a different set of property names. I'm not sure why that is.