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

Only generate validation methods when required #3089

Merged
merged 1 commit into from Jul 11, 2022

Conversation

raphael
Copy link
Member

@raphael raphael commented Jul 11, 2022

The prior code didn't always take into consideration
the case where a type has a required validation that
does not apply (e.g. object with only primitive types
that are not pointers).

This refactor moves the logic to a common method
that handles all corner cases.

The prior code didn't always take into consideration
the case where a type has a required validation that
does not apply (e.g. object with only primitive types
that are not pointers).

This refactor moves the logic to a common method
that handles all corner cases.
@raphael raphael merged commit 4bceaee into v3 Jul 11, 2022
@raphael raphael deleted the remove_extraneous_validation_functions branch July 11, 2022 02:13
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

1 participant