[ 
https://issues.apache.org/jira/browse/THRIFT-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roger Meier resolved THRIFT-2720.
---------------------------------
    Resolution: Fixed
      Assignee: Roger Meier

Henrique, yes this was the issue!
greetings to down under from GC.
;-r


> nodejs - Error with enum generation
> -----------------------------------
>
>                 Key: THRIFT-2720
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2720
>             Project: Thrift
>          Issue Type: Bug
>          Components: Node.js - Compiler
>    Affects Versions: 1.0
>            Reporter: Rodolfo Ochoa
>            Assignee: Roger Meier
>
> the issue is on node.js, an enum is generated like this:
> ttypes.TPolicy = {
>  '1' : 'NO_SYNC',
>  'NO_SYNC' : 1,
>  '2' : 'SYNC',
>  'SYNC' : 2,
>  '3' : 'WRITE_NO_SYNC',
>  'WRITE_NO_SYNC' : 3
> };
> correct is:
> ttypes.TPolicy = {
>  'NO_SYNC' : 1,
>  'SYNC' : 2,
>  'WRITE_NO_SYNC' : 3
> };
> from the .thrift file:
> enum TPolicy
> {
>     NO_SYNC       = 1,
>     SYNC          = 2,
>     WRITE_NO_SYNC = 3
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to