Skip to content

fix: Compare named schemas by name to avoid duplicate code generation#89

Merged
lerouxrgd merged 1 commit intolerouxrgd:masterfrom
flxo:depstack
Nov 28, 2025
Merged

fix: Compare named schemas by name to avoid duplicate code generation#89
lerouxrgd merged 1 commit intolerouxrgd:masterfrom
flxo:depstack

Conversation

@flxo
Copy link
Copy Markdown
Contributor

@flxo flxo commented Nov 27, 2025

When apache-avro produces unequal schema objects for the same named type (e.g., when resolving references), the previous equality check would fail to detect duplicates, resulting in duplicate code generation. This fix compares Record, Enum, and Fixed schemas by their names instead.

Fixes #88

When apache-avro produces unequal schema objects for the same named type
(e.g., when resolving references), the previous equality check would fail
to detect duplicates, resulting in duplicate code generation. This fix
compares Record, Enum, and Fixed schemas by their names instead.
@lerouxrgd lerouxrgd merged commit 74e9752 into lerouxrgd:master Nov 28, 2025
2 checks passed
@lerouxrgd
Copy link
Copy Markdown
Owner

Thanks for the PR !

@flxo
Copy link
Copy Markdown
Contributor Author

flxo commented Nov 29, 2025

Thank you. Would you mind doing a patch release on crates.io?

@lerouxrgd
Copy link
Copy Markdown
Owner

Yes ! I'll release it very soon

@flxo flxo deleted the depstack branch December 5, 2025 14:56
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.

malicious code generated (sometimes)

2 participants