cern-sis / issues-inspire

0 stars 0 forks source link

Investigate if we can add validation to django serializers #578

Open drjova opened 4 days ago

drjova commented 4 days ago

JSONSchema validation is currently implemented as an additional step in the views and endpoints within the backoffice.

Task Explore the possibility of integrating the JSONSchema validation directly into the DRF serializer, specifically for the data field.

Acceptance: If integration is feasible, JSONSchema validation should:

DonHaul commented 4 days ago

An example of how to add custom validation: https://github.com/inspirehep/backoffice/blob/main/backoffice/backoffice/workflows/api/serializers.py#L71