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

Infinite recursion when Type used in GRPC has an ArrayOf cyclic attribute #2515

Open
nitinmohan87 opened this issue Mar 23, 2020 · 0 comments
Labels

Comments

@nitinmohan87
Copy link
Contributor

nitinmohan87 commented Mar 23, 2020

Generating code for the DSL below leads to infinite recursion in Goa. HTTP endpoints are not affected.

var CategoryResult = ResultType("application/vnd.category", func() {
  TypeName("CategoryResult")
  Attributes(func() {
    Field(1, "id", Int, "ID")
    Field(3, "children_category", ArrayOf("CategoryResult"))
    Field(4, "name", String, "name")
  })
})

// Service describes a service
var _ = Service("foo", func() {
  Method("bar", func() {
    Result(CategoryResult)
    GRPC(func() {})
  })
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant