You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: The class 'ServerRoute' is not key value coding-compliant for the key 'arch'
There is no support for optional type, array of optionals or enum properties.
As a workaround you can implement the function 'setValue forUndefinedKey' for this. See the unit tests for more information
The text was updated successfully, but these errors were encountered:
@cpg I looked into this issue, the warning is coming from EVReflection, It tries to convert every property in the JSON object to s swift type. If some property isn't defined in the swift class that exist in JSON then EVReflection prints this warning.
Ways to fix
Ensure all properties in the JSON object are mapped correctly to a swift type, i.e no JSON property should be ignored.
We can add a dictionary of all the keys to be ignored in the JSON response. This means EVReflection won't warn us anymore.
Which of the options do you find more appropriate. I prefer option 1. @cpg
Thanks, @csoni111. Unnecessary memory usage is a good reason, you convinced me. I will proceed once @cpg sign off on this. Earlier I thought we might need those values later on but then we can always remove them from the ignored list if we need them.
Run-time warning:
The text was updated successfully, but these errors were encountered: