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

cmd/gf/genpbentity: For database fields of type json or jsonb, I want to support exporting them as google.protobuf.Value type #3685

Closed
zishang520 opened this issue Jul 17, 2024 · 0 comments

Comments

@zishang520
Copy link
Contributor

zishang520 commented Jul 17, 2024

Is your feature request related to a problem?

Option Yes

Describe the solution you'd like

Change the original export type from string to google.protobuf.Value type:

syntax = "proto3";

package pbentity;

option go_package = "test";

message Test {
    int64                     id          = 1   [json_name = "id"];
    string                    value       = 2   [json_name = "value"];
}

Describe alternatives you've considered

syntax = "proto3";

package pbentity;

option go_package = "test";

import "google/protobuf/struct.proto";

message Test {
    int64                     id          = 1   [json_name = "id"];
    google.protobuf.Value     value       = 2   [json_name = "value"];
}

Additional

No response

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant