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

Make validate support optional fields #562

Closed
wants to merge 1 commit into from
Closed

Make validate support optional fields #562

wants to merge 1 commit into from

Conversation

mkmik
Copy link
Contributor

@mkmik mkmik commented Dec 15, 2016

No description provided.

@dcodeIO
Copy link
Member

dcodeIO commented Dec 15, 2016

Optional fields should already be checked here when present.

Are you experiencing any issues? Maybe null should be checked there, too.

dcodeIO added a commit that referenced this pull request Dec 15, 2016
@mkmik
Copy link
Contributor Author

mkmik commented Dec 15, 2016

yes I added this check because that generated function was entered with m == null when an optional field was omitted. or at least the stack trace said that null has no such property. afk atm, I can attach a failing case when I'm back

@dcodeIO
Copy link
Member

dcodeIO commented Dec 15, 2016

I assume that the null value there is representing an optional message. I added a commit above, give it a try when you're back.

@mkmik
Copy link
Contributor Author

mkmik commented Dec 16, 2016

I confirm that master no longer exhibits the issue, abandoning this PR. Thank you!

@mkmik mkmik closed this Dec 16, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants