Merge "Disallow creation of product version with empty version name."

This commit is contained in:
Jenkins 2016-11-28 20:08:40 +00:00 committed by Gerrit Code Review
commit c67ec09349

View File

@ -250,3 +250,6 @@ class ProductVersionValidator(BaseValidator):
def validate(self, request):
"""Validate product version data."""
super(ProductVersionValidator, self).validate(request)
body = json.loads(request.body)
self.check_emptyness(body, ['version'])