-
Notifications
You must be signed in to change notification settings - Fork 97
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
EnumFormatter.formatEnum throws a NoSuchElementException #190
Comments
Thanks @pbarronfor the bug report, so this looks like it will be thrown if no default is supplied by the applicable Json formatter but the field is missing, in this case no value can be returned. |
Yes that is correct. The solution you are suggesting should work. Though, probably also need to review the usages of the function where default is None to determine if the field needs to changed to an "Option" or left as is and return a JSError. If i get time I'll have a look at it in the coming week. |
…trace better error response
Noticed this while completing #181. When parsing an empty Json object the following exceptions is thrown
instead of returning a JsError. The issue seems to be here where a
get
on the default optional value is made.The text was updated successfully, but these errors were encountered: