Skip to content

Nested arrays of base types are converted incorrectly #139

@grische

Description

@grische

This json

{
    "description": "this is an array of [][]int",
    "nested-array": [
        [
            0,
            1,
            2
        ],
        [
            2,
            3,
            4
        ]
    ]
}

is converted to

type AutoGenerated struct {
        Description string `json:"description"`
        NestedArray []NestedArray[]int `json:"nested-array"`
}

but it should be

type AutoGenerated struct {
        Description string `json:"description"`
        NestedArray [][]int `json:"nested-array"``

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