Add test for serializer field label

Closes #353.
This commit is contained in:
Cristi Vîjdea committed 2019-06-13 03:15:24 +03:00
1 parent db154d196a
commit d04f27f40f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ class LanguageSerializer(serializers.Serializer):
class ExampleProjectSerializer(serializers.Serializer):
project_name = serializers.CharField(help_text='Name of the project')
project_name = serializers.CharField(label='project name custom title', help_text='Name of the project')
github_repo = serializers.CharField(required=True, help_text='Github repository of the project')
class Meta:
+1 -1
View File
@@ -1110,7 +1110,7 @@ definitions:
type: object
properties:
projectName:
title: Project name
title: project name custom title
description: Name of the project
type: string
minLength: 1