Skip to content

Add method Schema::parse_str_with_list to parse root schemas with references - #104

Merged
martin-g merged 3 commits into
apache:mainfrom
rayokota:fix-union-refs
Jan 18, 2025
Merged

martin-g merged 3 commits into
apache:mainfrom
rayokota:fix-union-refs

Conversation

@rayokota

@rayokota rayokota commented Jan 18, 2025 •

Copy link
Copy Markdown
Contributor

Add a new method Schema::parse_str_with_list that can parse a root schema along with a list of named schemas. This method can be used to parse a root union that has named schema references, for example.

This new method combines the functionality of Schema::parse_str with Schema::parse_list.

Fixes #103

Add a new method `Schema::parse_str_with_list` that can parse
a root schema along with a list of named schemas.  This method
can be used to parse a root union that has named schema references,
for example.

This new method combines the functionality of `Schema::parse_str`
with `Schema::parse_list`.
@martin-g
martin-g merged commit f7208b0 into apache:main Jan 18, 2025
@martin-g

Copy link
Copy Markdown
Member

Thank you, @rayokota !

@rayokota

Copy link
Copy Markdown
Contributor Author

Thanks for the quick merge @martin-g ! I realized as I went to sleep last night that I should extend the return type to also returned the parsed named schemas:

#105

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

Successfully merging this pull request may close these issues.

Parsing Avro unions with schema references

2 participants