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

Poor handling of duplicated class names #7

Open
henriksjostrom opened this issue Oct 22, 2015 · 0 comments
Open

Poor handling of duplicated class names #7

henriksjostrom opened this issue Oct 22, 2015 · 0 comments

Comments

@henriksjostrom
Copy link

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
)
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

No branches or pull requests

1 participant