Skip to content

Struct with the same name overrides struct from another file #27

Open
greeflas opened this issue Aug 20, 2020 · 0 comments
Open

Struct with the same name overrides struct from another file #27

greeflas opened this issue Aug 20, 2020 · 0 comments

Comments

@greeflas
Copy link
Contributor

Hi!

I have thrift definitions:

foo.thrift

namespace php Demo.Foo

# The same struct name as in bar.thrift file
struct Demo {
  1: required string foo
  2: required string bar
}

service FooService {
  void test(1: Demo d)
}

bar.thrift

namespace php Demo.Bar

# The same struct name as in foo.thrift file
struct Demo {
  1: required string bar
}

service BarService {
  void thisIsTest(1: Demo d)
}

I expect in Thrift UI:

FooService

{
    "d": {
        "foo": "",
        "bar": ""
    }
}

BarService

{
    "d": {
        "bar": ""
    }
}

I have:

FooService

{
    "d": {
        "bar": ""
    }
}

BarService

{
    "d": {
        "bar": ""
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant