Skip to content
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

Generate Method Names in "$ref" Properties Using a "javaName" #1609

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erikvanderwerf
Copy link

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.

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

Successfully merging this pull request may close these issues.

None yet

1 participant