Skip to content

Properties named "list" result in empty names of classes #431

@ark-1

Description

@ark-1

Steps to reproduce:
Input the following JSON:

{
  "list": [{}]
}

Expected output:

data class Test(
    val list: List<Item0>
)
            
class Item0

(or something similar)
Actual output:

data class Test(
    val list: List<>
)

class 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions