serpy icon indicating copy to clipboard operation
serpy copied to clipboard

Input validation with serpy

Open JonathanRamier opened this issue 8 years ago • 4 comments

Hi,

I Implement Serpy with DRF. However when I wish to validate them, I have an error with serpy serializer like see in documentation. The code implementation will be do or I need to use two serializers, the standard DRF serializer for the form validation and the serpy for the listing serialization ?

Thanks

JonathanRamier avatar May 21 '16 14:05 JonathanRamier

Serpy doesn't currently handle input validation gracefully, so it might be best to have a DRF serializer for validation.

clarkduvall avatar Jun 15 '16 00:06 clarkduvall

@clarkduvall can you please explain this with a small example please :)

ikevinsolomon avatar Dec 06 '17 18:12 ikevinsolomon

@clarkduvall is this by design or just an unfortunate limitation? If serpy could maintain it's performance but also be able to handle field validation would crank things up a notch.

digitaldavenyc avatar Jan 29 '18 23:01 digitaldavenyc

@clarkduvall I'd be down to submit PR if it's something your open to

digitaldavenyc avatar Feb 01 '18 17:02 digitaldavenyc