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

Add buf convert --disallow-unknown #3115

Closed
wants to merge 2 commits into from

Conversation

bufdev
Copy link
Member

@bufdev bufdev commented Jun 28, 2024

Begins #2714. See bufbuild/protoyaml-go#37 for the remaining work for YAML that once fixed, can resolve the aforementioned issue.

@bufdev bufdev requested a review from doriable June 28, 2024 15:31
Copy link
Contributor

github-actions bot commented Jun 28, 2024

The latest Buf updates on your PR.

NameStatus
build✅ passed
lint✅ passed
format✅ passed
breaking✅ passed

@bufdev
Copy link
Member Author

bufdev commented Jun 28, 2024

This was just a drive-by PR and it's actually wrong. This adjusts the default behavior for binary and text formats to discard unknown values, which breaks a lot of things in unexpected ways. For some reason, we had discard unknown default to true for JSON, false for wire and txtpb, and implicitly false for yaml. This was likely a decision I made a long time ago.

This PR will need to be significantly adjusted to not introduce breaking changes.

@bufdev
Copy link
Member Author

bufdev commented Aug 1, 2024

Closing this for now - this PR is seriously off.

@bufdev bufdev closed this Aug 1, 2024
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.

1 participant