Actions
Issue #7245
closedUnexpected param error not being returned
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 79
Quarter:
Description
The unexpected param error is not being returned on some endpoints.
$ http :/pulp/api/v3/repositories/rpm/rpm/ name=hello ok=world
{
"ok": [
"Unexpected field"
]
}
$ http :/pulp/api/v3/repositories/rpm/rpm/57faa011-c78f-476f-9283-848425b2118f/sync/ remote=/pulp/api/v3/remotes/rpm/rpm/5e25532f-5d72-4929
-92ad-732e6e37d895/ hello=world
{
"task": "/pulp/api/v3/tasks/5382171f-a9d1-47d1-ac16-6843f4b53c4d/"
}
Actions
Validate unknown fields
All serializers which inherit from the base DRF serializer and are used in a ViewSet should now validate unknown query parameters.
closes #7245