Closed nicole0707 closed 1 month ago
Describe the bug
When using protoc-gen-es with json_types=true option, if the value of json_name includes a hyphen(e.g. "x-id"), it causes errors in the generated Typescript or Javascript files.
protoc-gen-es
json_types=true
json_name
To Reproduce
/** * @generated from field: string x_id = 101 [json_name = "x-id"]; */ x-id?: string;
Additional context The generated code should correctly handle the hyphen without causing syntax errors.
Apologize, just create a new issue in the appropriate repo - https://github.com/bufbuild/protobuf-es/issues/995
Describe the bug
When using
protoc-gen-es
withjson_types=true
option, if the value ofjson_name
includes a hyphen(e.g. "x-id"), it causes errors in the generated Typescript or Javascript files.To Reproduce
Additional context The generated code should correctly handle the hyphen without causing syntax errors.