Skip to content

Commit

Permalink
Add test for serializer field label
Browse files Browse the repository at this point in the history
Closes #353.
  • Loading branch information
axnsan12 committed Jun 13, 2019
1 parent db154d1 commit d04f27f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testproj/snippets/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Meta:


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:
Expand Down
2 changes: 1 addition & 1 deletion tests/reference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d04f27f

Please sign in to comment.