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 hierarchical file structure #5

Open
paalpri opened this issue Jun 10, 2021 · 1 comment
Open

Support hierarchical file structure #5

paalpri opened this issue Jun 10, 2021 · 1 comment

Comments

@paalpri
Copy link

paalpri commented Jun 10, 2021

Hi Mikkaello!

Great work on the repo and the improvements, really enjoying the changes!

It seems that hierarchical file structure isn't supported by the project so far. This would be a really nice improvement if possible! Unsure why it doesn't, maybe because the compiles structure doesn't happen in a given order. Below is a minimal example that doesn't work with avrodoc, but compiles and runs without problem as avro schemas.

If you have time, any insight into this would be most appreciated.

File: foo.avsc
{ "name": "Foo", "type": "record", "namespace": "example.com", "doc": "A simple object provided as a building block", "fields": [ { "name": "value", "type": "string", "doc": "The value of the object" }, { "name": "history", "type": "string", "doc": "A history field detailing random information about the object" } ] }

File: bar.avsc
{ "name": "Bar", "doc": "A complex object referencing the foo object", "namespace": "example.com", "type": "record", "fields": [ { "name": "fooObject", "type": "example.com.Foo", "doc": "A foo object" }, { "name": "name", "type": "string", "doc": "the name of the bar object" } ] }

@mikaello
Copy link
Owner

mikaello commented Jun 11, 2021

Thank you for your interest in this project!

I have added partial support for this feature in v1.2.0. Partial because correct ordering of schemata are necessary.

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