Skip to content

Conversation

@macie-korte
Copy link

Minimal change required to show all validation errors for all required fields instead of only a small subset.

I know you will probably not want this change as-is, I am opening this PR only to demonstrate what change was needed to make the desired behavior work for me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this help? the original conditions are more strict when validating fields

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now it makes sense. you want to bypass the DRF field validations in order to force form validations to kick in. better place for that would be to add an option in the Meta which will force the serializer to not include any DRF fields and will force validation to happen in the form.

places to look in the code:

FormSerializerBase.get_fields
FormSerializerOptions

@coveralls
Copy link

coveralls commented Jul 22, 2016

Coverage Status

Coverage remained the same at 99.793% when pulling 816e547 on macie-korte:full-validation into ab6fec6 on dealertrack:master.

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.

3 participants