Netflix / Netflix/dgs-codegen

Use kotlinx.serialization instead of Jackson for generated types

Open
#353 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
217
Forks
116
PR merge metrics
No merged PRs in 30d

Description

It would be great if we could do something like:

generateJava {
    generatedTypesSerializer = "kotlinx.serialization" // Default: "jackson" (use `null` to omit serialization annotations altogether)
}

Assuming we cannot do this right now, is there a recommended way to customize the generator to make it do something like this in our own project?

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 by locating the generator configuration and the code that applies Jackson serialization to generated types. Compare that path with the requested generatedTypesSerializer option and determine whether project-level customization is currently supported. Done means the generator can select kotlinx.serialization, Jackson, or no serialization annotations as described, with documented customization guidance and coverage for each option.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.