You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jano Svitok (Jira)" <ji...@apache.org> on 2020/03/12 23:41:00 UTC

[jira] [Updated] (THRIFT-5138) Swift generator does not escape keywords properly

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

Jano Svitok updated THRIFT-5138:
--------------------------------
    Description: 
For field `protocol` in a struct:
*generated:*
{code:swift}
    try proto.validateValue(protocol, named: "protocol")
{code}

*expected:*
{code:swift}
    try proto.validateValue(`protocol`, named: "protocol")
{code}

  was:
{code:swift}
    try proto.validateValue(protocol, named: "protocol")
{code}

For field protocol in a struct.


> Swift generator does not escape keywords properly
> -------------------------------------------------
>
>                 Key: THRIFT-5138
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5138
>             Project: Thrift
>          Issue Type: Bug
>          Components: Swift - Compiler
>    Affects Versions: 0.14.0
>            Reporter: Jano Svitok
>            Assignee: Jano Svitok
>            Priority: Major
>
> For field `protocol` in a struct:
> *generated:*
> {code:swift}
>     try proto.validateValue(protocol, named: "protocol")
> {code}
> *expected:*
> {code:swift}
>     try proto.validateValue(`protocol`, named: "protocol")
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)