Skip to content

Poor handling of duplicated class names #7

Description

@henriksjostrom

When generating case classes from JSON with duplicated field names we get duplicated class names and inability to parse.

Example:

{
    "root": {
        "a": {
            "b": "c",
            "a": {
                "d":"e"
            }
        }
    }
}

Gives

case class A(
  d: String
)
case class A(
  b: String,
  a: A
)
case class Root(
  a: A
)
case class R00tJsonObject(
  root: Root
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions