palantir / palantir/conjure-java
Provide a way to consider unknown union types invalid
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 39
- Forks
- 49
- Avg merge
- 8h 22m
- Merged PRs (30d)
- 32
Description
Currently Jackson object mapper will happily deserialize an object with bogus union types. This is desirable in certain cases as it allows for additive changes. However, on the server side quite often we want to discard such objects.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Jackson object-mapper deserialization configuration and the code handling union types. Reproduce deserialization of an object containing a bogus union type, then determine how strict rejection should be enabled without changing the existing additive-compatible behavior. Done means the strict behavior is configurable and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100