Commits

Yuriy Netesov committed c848cf2 Draft Merge

[json::erlang] fixed float serialization

  • Participants
  • Parent commits c424946, 6940453

Comments (0)

Files changed (2)

File generators/basic_generator.py

 from protogen import logger
 
-class BasicGenerator():
+class BasicGenerator:
     def generate(self, protocol, outputDir):
         raise NotImplementedError()
 

File generators/erlang/templates/json/deserializers.py

         self._valueName = valueName
 
     def body(self):
-        self.add(TSimple(StringTemplate("inner_deserialize_message($valueName)").substitute({'valueName' : self._valueName}), indent=1))
+        self.add(TSimple(StringTemplate(" inner_deserialize_message(element(2, $valueName))").substitute({'valueName' : self._valueName}), indent=1))
 
 class TListFieldDeserializer(Template):
     def __init__(self, field, valueName):