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

[Objc] ResponseDeserializer Type Mismatch Error #7135

Open
mahmutpinarbasi opened this issue Dec 8, 2017 · 1 comment
Open

[Objc] ResponseDeserializer Type Mismatch Error #7135

mahmutpinarbasi opened this issue Dec 8, 2017 · 1 comment

Comments

@mahmutpinarbasi
Copy link

Description

I have a response to be deserialized as NSDictionary<NSString*, NSArray<MbsmStationInfoDto>*> class. However while executing deserialize operation, it behaves like it's an array, and try to deserialize it as array.

Swagger-codegen version

v2.2.3

Suggest a fix/enhancement

I think, it is caused
match = [self.arrayOfModelsPatExpression firstMatchInString:className options:0 range:range];on generated class {Prefix}ResponseDeserializer.m returns a not null NSTextCheckingResult.
Thus
[self deserializeArrayValue:jsonData innerType:innerType error:error];
this line executed and Type Mismatch Error occured.

@wing328
Copy link
Contributor

wing328 commented Dec 9, 2017

@mahmutpinarbasi thanks for reporting the issue. My first suggestion is to try the latest master (2.3.0) to see if the issue still occurs.

SNAPSHOT version of 2.3.0 can be found in the project's README

@wing328 wing328 added this to the v2.3.0 milestone Dec 9, 2017
@wing328 wing328 modified the milestones: v2.3.0, v2.4.0 Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants