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

NoSuchMapperException in a derived class #156

Open
alfdev opened this issue Apr 21, 2016 · 2 comments
Open

NoSuchMapperException in a derived class #156

alfdev opened this issue Apr 21, 2016 · 2 comments

Comments

@alfdev
Copy link

alfdev commented Apr 21, 2016

Hi,

i have this model:

@JsonObject
public class ValidationErrorsModel {

    @SerializedName("validation_errors")
    @JsonField(name = "validation_errors")
    public SimpleArrayMap<String, List<String>> validationErrors;
}

and i have another one that extends it:

@JsonObject
public class UserCreateModel extends ValidationErrorsModel 

but it appears this error:

Caused by: com.bluelinelabs.logansquare.NoSuchMapperException: Class io.swagger.client.model.ValidationErrorsModel could not be mapped to a JSON object. Perhaps it hasn't been annotated with @JsonObject?
                                                                         at com.bluelinelabs.logansquare.LoganSquare.mapperFor(LoganSquare.java:304)
                                                                         at io.swagger.client.model.UserCreateModel$$JsonObjectMapper.<clinit>(UserCreateModel$$JsonObjectMapper.java:15)

any idea how can i solve it?

Thanks

@EricKuck
Copy link
Member

I haven't been able to reproduce anything like this since you submitted the issue. Would it be possible to create a small demo so I could check out what's going wrong?

@alfdev
Copy link
Author

alfdev commented Apr 26, 2016

Hi Eric,

i've build a project that reproduce the issue:
https://github.com/alfdev/DemoIssueLogansquare

Thank you.

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

2 participants