Skip to content

Add Validations #3

@RiflerRick

Description

@RiflerRick

@Zaiku1972 there are serializer validations to be added, basically wherever you think there is a possibility of an exception, add a serializer validation
somewhat like...

from rest_framework import serializers
# if validation error is to be raised
raise serializers.ValidationError("msg to be responded with")

note that this is only an example. There are more sophisticated means of raising validation errors

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions