palantir / palantir/conjure-java

Track removing JsonIgnoreProperties from beans

Open
#206 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
39
Forks
49
Avg merge
8h 22m
Merged PRs (30d)
32

Description

What happened?

Due to a regression introduced earlier on, we generate @JsonIgnoreProperties on all beans:

https://github.com/palantir/conjure-java/blob/0ffbc20056e5296b3af0a32fd86e061b624cecaa/conjure-java-core/src/main/java/com/palantir/conjure/java/types/BeanBuilderGenerator.java#L99-L100

which overrides the distinct configuration we had intended for servers as opposed to clients:

https://github.com/palantir/conjure-java-runtime/blob/f5c8e7e56f874b47b6707a7ce214f7a36dfdc2d8/conjure-java-jackson-serialization/src/main/java/com/palantir/conjure/java/serialization/ObjectMappers.java#L67

What did you want to happen?

https://github.com/palantir/conjure-java/pull/121 should be merged once we are certain that this won't break existing clients.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with BeanBuilderGenerator.java around lines 99-100 and ObjectMappers.java around line 67 to understand the conflicting JsonIgnoreProperties behavior. Review pull request 121 and verify whether removing the generated annotation could break existing clients. Done means the change is tracked through a merge decision with client compatibility confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.