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

Add integration tests failing due to incorrect JSR305 annotations #921

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

jrehwaldt
Copy link
Contributor

Reported in gh-906

jrehwaldt added a commit to jrehwaldt/jsonschema2pojo that referenced this pull request Sep 18, 2018
…Rule already suggests).

The relevant bits are in `SchemaRule#L79`, where a child schema is obtained and passed down
the rule tree as the schema for the relevant section. This seems to be the expected behavior
by `NotRequiredRule`, among others.

Changes `Schema` to keep reference to its parent `Schema` instead of parent `JsonNode`.
This means `Schema(id, JsonNode content, JsonNode parentContent)` is replaced by
`Schema(id, JsonNode content, Schema parent)`.

`Schema#getParent` still returns _self_ as did `#getParentContent` previously.

Fixes joelittlejohngh-906 (JSR305 bug) and depends on joelittlejohngh-921 (integration tests for JSR305 bug)
@joelittlejohn joelittlejohn merged commit d5b754d into joelittlejohn:master Sep 19, 2018
@jrehwaldt jrehwaldt deleted the jsr305-bug branch September 19, 2018 09:28
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.

2 participants