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

Crash in casting while iterating over basicTypesWithSpecialFetchingNeedsTypeCast: [String] #129

Open
khaledannajar opened this issue Mar 5, 2019 · 1 comment

Comments

@khaledannajar
Copy link

I unarchived the zip file of release 1.1.0 that has in Xcode version: 1.0.8 build 1
Once I paste this JSON:
[ { "id": 3, "name": "kid 1k", "birthDate": "2018-01-25", "emergencyNumber": { "countryCode": "+1", "number": "555xxxxxx" }, "healthStatuses": [], "gender": { "id": 1, "name": { "ar": "ذكر", "en": "Male" } }, "relation": { "id": 1, "name": { "ar": "أم", "en": "Mother" } }, "age": 1 }, { "id": 36, "name": "my kid x", "birthDate": "2019-01-15", "emergencyNumber": { "countryCode": "+1", "number": "55555555" }, "healthStatuses": [], "gender": { "id": 1, "name": { "ar": "ذكر", "en": "Male" } }, "relation": { "id": 2, "name": { "ar": "أب", "en": "Father" } }, "age": 0 } ]

I get crash in line 484 in class "FileRepresenter" in the function of fetchArrayFromJsonSyntaxForProperty(). Above that line there is this comment "// if needs cast"

screen shot 2019-03-05 at 11 09 54 am

The values of the variables:
propertyStr = propertyStr String "\t\t<!VarName!> = <!VarType!>()\n\t\tlet <!VarName!>Array = json["<!JsonKeyName!>"].arrayValue\n\t\tfor <!VarName!>Json in <!VarName!>Array{\n\t\t\t<!VarName!>.append(<!VarName!>Json.stringValue)\n\t\t}\n"
index = 6
lang.basicTypesWithSpecialFetchingNeedsTypeCast = nil

@Liuqs-MrPotato
Copy link

Have you solved this problem?

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