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

Unable to resolve type reference #198

Open
EArbeitman opened this issue Sep 7, 2022 · 1 comment
Open

Unable to resolve type reference #198

EArbeitman opened this issue Sep 7, 2022 · 1 comment

Comments

@EArbeitman
Copy link

Hi,

I'm attempting to parse the following avro schema:

{
  "namespace": "com.compass.common.entities.v1",
  "name": "ResourceRef",
  "type": "record",
  "doc": "Representation of a specific resource with its id and its type",
  "fields": [
    {
      "name": "resourceId",
      "type": {
        "type": "string",
        "avro.java.string": "String"
      }
    },
    {
      "name": "resourceType",
      "type": "com.compass.common.entities.v1.ResourceType"
    }
  ]
}

My go code that does the parsing:

		schema, err := compiler.ParseSchema(byteValue)
		if err != nil {
			log.Fatalf("failed to parse schema", err)
		}

When that code is executed, I get the following error:

ailed to parse schema%!(EXTRA *errors.errorString=Unable to resolve type reference com.compass.common.entities.v1.ResourceType)

I'm wondering if this library supports parsing custom types? Any guidance would be appreciated.

Thank you,

@EArbeitman
Copy link
Author

Hey @actgardner any ideas?

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

1 participant