Add test for serializer field label

Closes #353.
master
Cristi Vîjdea 2019-06-13 03:15:24 +03:00
parent db154d196a
commit d04f27f40f
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class LanguageSerializer(serializers.Serializer):
class ExampleProjectSerializer(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') github_repo = serializers.CharField(required=True, help_text='Github repository of the project')
class Meta: class Meta:

View File

@ -1110,7 +1110,7 @@ definitions:
type: object type: object
properties: properties:
projectName: projectName:
title: Project name title: project name custom title
description: Name of the project description: Name of the project
type: string type: string
minLength: 1 minLength: 1