Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyclic references unsupported #16

Open
pshirshov opened this issue Jan 15, 2016 · 1 comment
Open

Cyclic references unsupported #16

pshirshov opened this issue Jan 15, 2016 · 1 comment

Comments

@pshirshov
Copy link

Courier is unable to compile structures like so:

namespace example

record Test1 {
  tst: Test2
}
namespace example

record Test2 {
  tst: Test1
}

So it's impossible to express complex recursive structures (like JSON tree, for example) with courier schemas.

@jpbetz
Copy link
Contributor

jpbetz commented Feb 4, 2016

Hi @FeiWongReed Thanks for reporting. We're working on a fix and will add a test case similar to your example once fixed. This should be supported currently in all languages but Swift. For Swift we plan to transition from structs to final classes which should resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants