Skip to content

Plugin request for Buf Schema Registry: protopatch #858

@samborkent

Description

@samborkent

This plugin allows to wrap calls of code generators and patch them before writing. This allows users to circumvent most syntax issues that come with using protobuf and Go code generation. For example, item_id is parsed to ItemId instead ItemID as per Go's style guide.

Another glaring issue is enum types which generate horrendous Go types as follows:

enum EnumExample {
    ENUM_EXAMPLE_UNSPECIFIED = 0;
    ...
}

Which is compiled as EnumExample_ENUM_EXAMPLE_UNSPECIFIED.

Both of these issues and other ugly syntax issues can be solved with this plugin. The plugin is actively maintained and would be a great addition to the buf ecosystem.

Mandatory

Where is the source code for the plugin?

https://github.com/alta/protopatch

Optional

Does the plugin have a valid semver version?

v0.5.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions