Commits

Yuriy Netesov committed c5ce899 Draft

[erlang::json] module name fix

Comments (0)

Files changed (1)

generators/erlang/templates/json/serialization.py

     def body(self):
         protocolName = self._protocol.get_name()
         self.add(TSimple(StringTemplate("-module(${protocolName}_json_messaging).").substitute(locals())))
-        self.add(TSimple(StringTemplate('-include("${protocol_name}_messaging.hrl").').substitute(locals())))
+        self.add(TSimple(StringTemplate('-include("${protocolName}_messaging.hrl").').substitute(locals())))
         self.add(TSimple("-export([serialize_message/1, deserialize_message/1]).")) 
         self.add(MessageSerializers(self._protocol))
         self.add(MessageDeserializers(self._protocol))