As an API user, I get user friendly feedback when I use an invalid value
There are several places in Pulp 3 where we ought to be using validation but are not. Here are a few examples with reproducers:
There may be more issues too. Instead of opening individual bugs/tasks, this story is go through the API and add validation for any existing fields that need it.
Add uniquenessand length validators to serializer fields.
Move username regex validator from model to serializer, since the model validation
does not run automatically on model save:
Note: For the importer and publisher uniqueness validator to take effect they must
be declared on the Plugin importer and publisher class like so:
validators = PublisherSerializer.Meta.validators
Please register to edit this issue