Project

Profile

Help

Story #8761

closed

Task #8740: [EPIC] Publication based plugins should use either `distribution.repository` or `distribution.publication` but not both

Add validation to Distribution serializer

Added by bmbouter almost 3 years ago. Updated almost 3 years ago.

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

100%

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

Description

BaseDistributionSerializer and RepositoryVersionSerializer had some validation preventing users from setting them up incorrectly which was not added to DistributionSerializer.

  • You should not be allowed to set Distribution.repository_version and Distribution.publication at the same time
  • You should not be allowed to set Distribution.repository and Distribution.repository_version at the same time

Also available in: Atom PDF