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

Make protobuf-ts as conformant as protobuf-es #567

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

jcready
Copy link
Contributor

@jcready jcready commented Jul 10, 2023

This change fixes all remaining conformance tests except for Recommended.Proto2.JsonInput.FieldNameExtension.Validator (and obviously all the text format ones). This brings protobuf-ts up to the same level of conformance as protobuf-es.

The reason that the Required.Proto3.JsonInput.EnumFieldWithAliasLowerCase and Required.Proto3.JsonInput.EnumFieldWithAliasUseAlias conformance tests were failing was because the test_messages_proto3.proto file hadn't been updated to match the version of the conformance runner. It has been updated (along with the test_messages_proto2.proto and conformance.proto files) to match what's in v22.3.

Side note: would it make more sense to just add the packages/test-conformance/src/gen folder to the .gitignore? It'd make this PR a lot easier to grok.

Copy link
Owner

@timostamm timostamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🙂

would it make more sense to just add the packages/test-conformance/src/gen folder to the .gitignore?

I've come around to prefer generated code to be checked in, especially for code generator projects. It means every commit contains the full picture. What we are still missing here is CI checking for diffs.

@timostamm timostamm merged commit 7cfd1a5 into timostamm:main Jul 31, 2023
1 check passed
@jcready jcready deleted the make-conformant branch August 1, 2023 12:26
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.

2 participants