Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Decomposed schemas are not supported? #19

Open
quux00 opened this issue Oct 31, 2014 · 0 comments
Open

Decomposed schemas are not supported? #19

quux00 opened this issue Oct 31, 2014 · 0 comments

Comments

@quux00
Copy link

quux00 commented Oct 31, 2014

Are decomposed Avro schemas are supported?

I have a large number of objects in a deeply nested object hierarchy and we've separated each object into its own avsc schema file. Leaf "objects" only have primitive types and non-leaf objects reference other objects rather than define them inline, like so:

{
  "namespace": "my.namespace",
  "type": "record",
  "name": "TopRecord",
  "fields": [
    {"name": "Field1", "type": ["null", "string"], "default": null},
    {"name": "Field2", "type": ["null", "string"], "default": null},
    {"name": "Field3", "type": ["null", "string"], "default": null, "aliases": ["UpdateDtm"]},
    {"name": "Field4", "type": ["null", {"type": "array", "items": "string"}], "default": null},
    {"name": "Field5", "type": ["null", "SubRecord1"], "default": null},
    {"name": "Field6", "type": ["null", {"type": "array", "items": "SubRecord2"}], "default": null}
  ]
}

where SubRecord1 and 2 are defined in their own schema files (and may reference other subrecords, etc.)

Is this model supported in AvroDoc? When I run:

avrodoc src/main/resources/avro/import/*.avsc > foo.html

It runs without error but when I load foo.html into a browser it just displays "Loading" in both Chrome and Firefox.

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

No branches or pull requests

1 participant