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

Support deeply nested array types #67

Open
timchan-lumoslabs opened this issue May 22, 2017 · 1 comment
Open

Support deeply nested array types #67

timchan-lumoslabs opened this issue May 22, 2017 · 1 comment

Comments

@timchan-lumoslabs
Copy link
Contributor

Given:

{
  "namespace": "com.acme",
  "name":      "a",
  "type":      "record",
  "fields": [
    { "name": "words", "type":  { "type": "array", "items": "string" }}
  ]
}
{
  "namespace": "com.acme",
  "name":      "b",
  "type":      "record",
  "fields": [
    { "name": "as", "type":  { "type": "array", "items": "com.acme.a" }}
  ]
}
{
  "namespace": "com.acme",
  "name":      "c",
  "type":      "record",
  "fields": [
    { "name": "bs",  "type":  { "type": "array", "items": "com.acme.b" }}
  ]
}

I get the following error:

[error]  not enough arguments for method apply: (words: Array[String])com.acme.model.a in object a.
[error] Unspecified value parameter words.
[error]           a()
[error]            ^
@julianpeeters
Copy link
Owner

Hey Tim, sorry for the hiccup and, as always, thanks for reporting.

I'm unable to reproduce this, however. I tried on linux using sbt-avrohugger 0.15.2, sbtavrohugger.SbtAvrohugger.scavroSettings, and with the file names a.avsc, b.avsc, and c.avsc

Are your details the same?

I'll try on OSX when I get a chance (or perhaps finally set up a TravisCI build).

In the meantime, does the above reveal a fix for you?

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