tl;dr should content subclasses define a serializer to be used for validation as a class attribute?
For example FileContent would get: class FileContent(Content): serializer = FileContentSerializer Then the Stages API when creating content would use that Serializer when validating the data. This reasoning is that from earlier convo's, Pulp's codebase is favoring DRF validation with serializers over Django's own model validation. Because of that I think we need plugin writers to express how something should validate the model. We need to know which serializer we need to provide validation of content creation during sync: https://pulp.plan.io/issues/5927 What do you think? Thanks! Brian
_______________________________________________ Pulp-dev mailing list Pulp-dev@redhat.com https://www.redhat.com/mailman/listinfo/pulp-dev