Is your feature request related to a problem? Please describe.
User can populate extra field with any amount of JSON data using the API. It would be useful to allow a custom validator for extra field on basket and basket item serializer, similar to how address validation works on the checkout serializer.
Describe the solution you'd like
Validate extra field before it gets saved on basket or basket item using a custom validator function configured in settings.py.
Is your feature request related to a problem? Please describe. User can populate
extra
field with any amount of JSON data using the API. It would be useful to allow a custom validator forextra
field on basket and basket item serializer, similar to how address validation works on the checkout serializer.Describe the solution you'd like Validate
extra
field before it gets saved on basket or basket item using a custom validator function configured insettings.py
.Describe alternatives you've considered
-
Additional context
-