@@ -24,7 +24,7 @@ class ExamplePagination(pagination.PageNumberPagination):
24
24
25
25
26
26
class ExampleSerializer (serializers .Serializer ):
27
- a = serializers .CharField (required = True )
27
+ a = serializers .CharField (required = True , help_text = 'A field description' )
28
28
b = serializers .CharField (required = False )
29
29
30
30
@@ -131,7 +131,7 @@ def test_authenticated_request(self):
131
131
action = 'post' ,
132
132
encoding = 'application/json' ,
133
133
fields = [
134
- coreapi .Field ('a' , required = True , location = 'form' ),
134
+ coreapi .Field ('a' , required = True , location = 'form' , description = 'A field description' ),
135
135
coreapi .Field ('b' , required = False , location = 'form' )
136
136
]
137
137
),
@@ -162,7 +162,7 @@ def test_authenticated_request(self):
162
162
encoding = 'application/json' ,
163
163
fields = [
164
164
coreapi .Field ('pk' , required = True , location = 'path' ),
165
- coreapi .Field ('a' , required = True , location = 'form' ),
165
+ coreapi .Field ('a' , required = True , location = 'form' , description = 'A field description' ),
166
166
coreapi .Field ('b' , required = False , location = 'form' )
167
167
]
168
168
),
@@ -172,7 +172,7 @@ def test_authenticated_request(self):
172
172
encoding = 'application/json' ,
173
173
fields = [
174
174
coreapi .Field ('pk' , required = True , location = 'path' ),
175
- coreapi .Field ('a' , required = False , location = 'form' ),
175
+ coreapi .Field ('a' , required = False , location = 'form' , description = 'A field description' ),
176
176
coreapi .Field ('b' , required = False , location = 'form' )
177
177
]
178
178
),
0 commit comments