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

Handle unknown enum values #15

Open
samcook opened this issue Aug 19, 2016 · 0 comments
Open

Handle unknown enum values #15

samcook opened this issue Aug 19, 2016 · 0 comments

Comments

@samcook
Copy link
Contributor

samcook commented Aug 19, 2016

Currently if the server returns a value for an enum that isn't recognised, the (objective-C) fickle code will default the enum to the first value.

Possible solutions:

  1. Throw an exception if an unknown enum value is encountered. (Downside of this approach is that, if the message contains a list of objects and one object fails due to an invalid enum, the entire message would be discarded).
  2. Automatically generate an "unknown" value on the client side for all enums. (This approach would allow the client to decide what to do on a per enum basis).
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

1 participant