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

[Swift] fix issue 1994: make sure we don't crash if rawValue returns … #2090

Merged
merged 1 commit into from
Feb 10, 2016
Merged

Conversation

jaz-ah
Copy link
Contributor

@jaz-ah jaz-ah commented Feb 9, 2016

…nil when trying to create an enumeration - instead return nil which allows the instance variable to be nil in this case (it will still try to unwrap the optional though if you declare the enumeration as a required property)

note: there aren't really any tests I can add to validate this since the service is always returning valid enumerations. but I did update the sample code.

…nil when trying to create an enumeration - instead return nil which allows the instance variable to be nil in this case (it will still try to unwrap the optional though if you declare the enumeration as a required property)

note: there aren't really any tests I can add to validate this since the service is always returning valid enumerations. but I did update the sample code.
wing328 added a commit that referenced this pull request Feb 10, 2016
[Swift] fix issue 1994: make sure we don't crash if rawValue returns …
@wing328 wing328 merged commit 3ba4cd1 into swagger-api:master Feb 10, 2016
@wing328 wing328 added this to the v2.1.6 milestone Feb 10, 2016
@jaz-ah jaz-ah deleted the issue-1994 branch February 10, 2016 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants