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

Issue #569: excludePropertyAnnotations not respected when using gson #570

Merged
merged 2 commits into from
Nov 4, 2020
Merged

Issue #569: excludePropertyAnnotations not respected when using gson #570

merged 2 commits into from
Nov 4, 2020

Conversation

robin-xyzt-ai
Copy link
Contributor

The excludePropertyAnnotations property is not respected when using gson
as JsonLibrary.

  • Configured an exclusion strategy on the GsonParser to fix the issue
  • Adjusted the IncludeExcludePropertyTest to reveal the issue and check
    the fix.

The excludePropertyAnnotations property is not respected when using gson
as JsonLibrary.

* Configured an exclusion strategy on the GsonParser to fix the issue
* Adjusted the IncludeExcludePropertyTest to reveal the issue and check
the fix.
@Parameterized.Parameters(name = "{index} - {0}")
public static Collection<Object[]> data() {
return Arrays.stream(JsonLibrary.values())
.filter(library -> library != JsonLibrary.jackson1 && library != JsonLibrary.jsonb)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this wouldn't be needed.
But the test still fails for jackson1 and jsonb, so I excluded those

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackson1 is not developed anymore, jsonb is developed by the community so maybe somebody will implement it.

@vojtechhabarta
Copy link
Owner

Thanks for your PR, merging.

@vojtechhabarta vojtechhabarta merged commit c7e8de6 into vojtechhabarta:master Nov 4, 2020
@robin-xyzt-ai
Copy link
Contributor Author

Thanks. Quick question: what is the schedule to publish new releases into maven so that I know when I can download a patched version from there ?

@robin-xyzt-ai robin-xyzt-ai deleted the excludePropertyAnnotations_gson branch November 5, 2020 07:20
@vojtechhabarta
Copy link
Owner

Sorry for late response, released in v2.27.744.

@robin-xyzt-ai
Copy link
Contributor Author

Thanks !

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