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

Generated Kotlin Data Class File Reference is Incorrect #193

Closed
wuseal opened this issue Jun 26, 2019 · 0 comments
Closed

Generated Kotlin Data Class File Reference is Incorrect #193

wuseal opened this issue Jun 26, 2019 · 0 comments
Assignees
Labels
bug L5 Difficulty level 5 (Maximum is 9)
Milestone

Comments

@wuseal
Copy link
Owner

wuseal commented Jun 26, 2019

I found a Error, I have an Idea it crept in with your last update, as I have not seen it before!
The JSON below creates a class "ProgressesResponse.kt"

data class ProgressesResponse(
   @SerializedName("_embedded")
   var embedded: Embedded,
   @SerializedName("_links")
   var links: Links,
   var page: Page
)

AND also a class

data class Progresse(
   var id: String,
   var status: String,
   var timestamp: String,
   @SerializedName("_links")
   var links: Links
)

Both Pointing to the same class Links, however the first "ProgressesResponse.kt" is suppose to point to class LinksX

Otherwise Thankyou for this Excelent Time-Saver!!

My Sample jSON as produced from a Spring Boot API with MongoDB Backend Database

JSON Content:

{
    "_embedded": {
        "progresses": [
            {
                "id": "5cb38d584274071924b02127",
                "status": "Prospect",
                "timestamp": "2019-05-26T10:13:05.396+0000",
                "_links": {
                    "self": {
                        "href": "http://192.168.70.235:8080/api/progresses/5cb38d584274071924b02127"
                    },
                    "progress": {
                        "href": "http://192.168.70.235:8080/api/progresses/5cb38d584274071924b02127"
                    }
                }
            },
            {
                "id": "5cb38d584274071924b02128",
                "status": "Made initial contact",
                "timestamp": "2019-05-26T10:13:05.396+0000",
                "_links": {
                    "self": {
                        "href": "http://192.168.70.235:8080/api/progresses/5cb38d584274071924b02128"
                    },
                    "progress": {
                        "href": "http://192.168.70.235:8080/api/progresses/5cb38d584274071924b02128"
                    }
                }
            },
             {
                "id": "5cb38d584274071924b02130",
                "status": "Leader (Builder)",
                "timestamp": "2019-05-26T10:13:05.396+0000",
                "_links": {
                    "self": {
                        "href": "http://192.168.70.235:8080/api/progresses/5cb38d584274071924b02130"
                    },
                    "progress": {
                        "href": "http://192.168.70.235:8080/api/progresses/5cb38d584274071924b02130"
                    }
                }
            }
        ]
    },
    "_links": {
        "self": {
            "href": "http://192.168.70.235:8080/api/progresses{?page,size,sort}",
            "templated": true
        },
        "profile": {
            "href": "http://192.168.70.235:8080/api/profile/progresses"
        }
    },
    "page": {
        "size": 20,
        "totalElements": 10,
        "totalPages": 1,
        "number": 0
    }
}
Original Poster by [Johannes Bester](mail:[email protected])
@wuseal wuseal added L5 Difficulty level 5 (Maximum is 9) bug labels Jun 26, 2019
@wuseal wuseal added this to the 3.4.0 milestone Jul 4, 2019
@wuseal wuseal self-assigned this Jul 21, 2019
wuseal added a commit that referenced this issue Jul 21, 2019
@wuseal wuseal added the fixed but not released this issue has been solved but is not released yet label Jul 21, 2019
@wuseal wuseal closed this as completed in 7572128 Jul 29, 2019
@wuseal wuseal removed the fixed but not released this issue has been solved but is not released yet label Jul 30, 2019
wuseal pushed a commit that referenced this issue Sep 20, 2021
wuseal added a commit that referenced this issue Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug L5 Difficulty level 5 (Maximum is 9)
Projects
None yet
Development

No branches or pull requests

1 participant