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

Don't encode a struct as another struct #371

Merged
merged 3 commits into from
May 17, 2024

Conversation

v0idpwn
Copy link
Collaborator

@v0idpwn v0idpwn commented May 14, 2024

Closes #365

This is a breaking change, as you could rely on the automatic transformation between structs. I don't think that should be done, though.

@ericmj
Copy link
Collaborator

ericmj commented May 15, 2024

I am guessing there are people that rely on this behavior, at least accidentally, so I think we need to ship as a breaking change.

@whatyouhide
Copy link
Collaborator

Yeah it's a breaking change but honestly a very good one 😄 We'll have to revamp a bunch of stuff and I'd love to get to a 1.0, so I don't think this is a big issue.

@ericmj
Copy link
Collaborator

ericmj commented May 17, 2024

I will go ahead and merge this. We can always start a new branch if we need to do more minor/patch releases before bumping major.

@ericmj ericmj merged commit ef8f5b4 into elixir-protobuf:main May 17, 2024
8 checks passed
@ericmj
Copy link
Collaborator

ericmj commented May 17, 2024

Thank you @v0idpwn!

@v0idpwn v0idpwn deleted the fix/validate-struct-encoding branch May 17, 2024 15:47
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.

Protobuf.encode/1 does not actually verify struct in some cases
3 participants