File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,7 @@ class Keyword(Field):
272272
273273class Boolean (Field ):
274274 name = 'boolean'
275+ _coerce = True
275276
276277 def _deserialize (self , data ):
277278 if data is None :
@@ -287,9 +288,9 @@ def clean(self, data):
287288 raise ValidationException ("Value required for this field." )
288289 return data
289290
290-
291291class Float (Field ):
292292 name = 'float'
293+ _coerce = True
293294
294295 def _deserialize (self , data ):
295296 if data is None :
@@ -305,20 +306,18 @@ class ScaledFloat(Float):
305306 def __init__ (self , scaling_factor , * args , ** kwargs ):
306307 super (ScaledFloat , self ).__init__ (scaling_factor = scaling_factor , * args , ** kwargs )
307308
308-
309309class Double (Float ):
310310 name = 'double'
311311
312-
313312class Integer (Field ):
314313 name = 'integer'
314+ _coerce = True
315315
316316 def _deserialize (self , data ):
317317 if data is None :
318318 return None
319319 return int (data )
320320
321-
322321class Byte (Integer ):
323322 name = 'byte'
324323
@@ -330,6 +329,7 @@ class Long(Integer):
330329
331330class Ip (Field ):
332331 name = 'ip'
332+ _coerce = True
333333
334334 def _deserialize (self , data ):
335335 if data is None :
@@ -345,6 +345,7 @@ def _serialize(self, data):
345345
346346class Binary (Field ):
347347 name = 'binary'
348+ _coerce = True
348349
349350 def _deserialize (self , data ):
350351 if data is None :
@@ -391,6 +392,3 @@ class TokenCount(Field):
391392
392393class Murmur3 :
393394 name = 'murmur3'
394-
395- class Percolator :
396- name = 'percolator'
You can’t perform that action at this time.
0 commit comments