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 yaml format #2470

Merged
merged 14 commits into from
Nov 17, 2023
Merged

Add yaml format #2470

merged 14 commits into from
Nov 17, 2023

Conversation

Alfus
Copy link
Contributor

@Alfus Alfus commented Oct 2, 2023

Example error output:

image

@Alfus Alfus changed the title Add ProtoYAML support to buf Add ProtoYAML support to buf cmd Oct 2, 2023
@Alfus Alfus marked this pull request as ready for review October 2, 2023 21:18
@Alfus Alfus requested a review from bufdev October 2, 2023 21:18
Copy link
Member

@bufdev bufdev left a comment

Choose a reason for hiding this comment

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

  • The only tests I see are around buf convert, can we do some round trip tests around buf build? I believe we already have some.
  • What happens if I use snake case keys instead of camel case keys in my YAML file? protojson handles both, wondering if we have an answer for this. Optimally, we'd have a test for this as well (assuming we handle both).

go.mod Outdated Show resolved Hide resolved
@Alfus
Copy link
Contributor Author

Alfus commented Nov 14, 2023

  • The only tests I see are around buf convert, can we do some round trip tests around buf build? I believe we already have some.

Added a test that uses the yaml format as both output and input to/from buf build. Is this what you mean, or do you want more tests, somewhere else?

  • What happens if I use snake case keys instead of camel case keys in my YAML file? protojson handles both, wondering if we have an answer for this. Optimally, we'd have a test for this as well (assuming we handle both).

protoyaml handles both, and tests that in it's repo.

bufdev and others added 3 commits November 17, 2023 12:16
… file formats (#2601)

This also deletes the `bufconvert` and `bufref` packages entirely in the
process, and renames `ImageRef` to `MessageRef` in `buffetch`. This
eliminates the separate code paths for conversion, and everything else.
@bufdev bufdev changed the title Add ProtoYAML support to buf cmd Add yaml format Nov 17, 2023
@bufdev bufdev merged commit ee274b3 into main Nov 17, 2023
8 checks passed
@bufdev bufdev deleted the alfus/protoyaml branch November 17, 2023 20:30
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