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

Generated interfaces should handle composite schemas between files #20

Open
jdenue opened this issue Jun 29, 2018 · 0 comments
Open

Generated interfaces should handle composite schemas between files #20

jdenue opened this issue Jun 29, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@jdenue
Copy link

jdenue commented Jun 29, 2018

Sometimes a schema will include a type defined in a separate file. For example:

Type.avsc:

{
  "type" : "record",
  "name" : "Type",
  "namespace" : "com.example",
  "fields" : [
   {
      "name" : "id",
      "type" : "long",
      "default" : null
    },
    {
      "name" : "subType",
      "type" : "com.example.SubType",
      "default" : null
    }
} 

SubType.avsc:

{
  "type" : "record",
  "name" : "SubType",
  "namespace" : "com.example",
  "fields" : [
   {
      "name" : "id",
      "type" : "long",
      "default" : null
    },
    {
      "name" : "value",
      "type" : "string",
      "default" : null
    }
}

When we generate interfaces from a directory, the tool should be smart enough to scan the directory for dependencies like these, and include the appropriate typings and schemas for serialization/deserialization.

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

No branches or pull requests

2 participants