Project

Profile

Help

Task #7546

closed

Validate unknown fields

Added by lmjachky over 3 years ago. Updated over 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_container/475":https://github.com/pulp/pulp_container/issues/475


At the moment, we do not validate unknown fields in serializers. For example, this call is executed without any errors:

http :24817/pulp/api/v3/repositories/container/container/bb221b58-bcfa-45ae-96ea-363ca381da47/tag/ tag="tag" digest=$MANIFEST_DIGEST blabla="halabala"

I propose to add the validation by leveraging pulpcore.plugin.serializers.ValidateFieldsMixin.

Also available in: Atom PDF