Closed
Description
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.
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.
Activity