forked from grpc-ecosystem/protoc-gen-grpc-gateway-ts
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Describe the bug
When generating TypeScript code using this fork of protoc-gen-grpc-gateway-ts, I’ve noticed two issues:
1. Fields using the json_name option in proto definitions are not reflected in the generated TypeScript output.
2. Fields marked as required using both the -required comment and [(buf.validate.field).required = true]; are still generated as optional in TypeScript.
⸻
To reproduce
1. json_name issue
Expected: The field name should match the json_name specified in the proto.
⸻
2. Required field issue
Expected: Fields marked as required should be generated as non-optional.
⸻
Expected behavior
• TypeScript interfaces should respect the json_name mapping from the proto.
• Fields marked as required should not be marked optional in the output.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels



