Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    repeated(oneof(Foo, Bar))
is not the same as

    oneof(repeated(Foo), repeated(Bar))


Correct, both of those are possible to represent as is though. Each oneof just requires and extra proto to wrap it.

So you have

    repeated OneaofWrapper {
      oneof {
        Foo
        Bar
      }
    }
Or what I did in my previous comment.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: