-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
[BUG] - .proto -> typescript -> encode format and API doesn't allow for correct field ids and incorrectly assumes auto incrementation. #1234
Comments
Good suggestion. To support the By the way, I have to do it now because actual protocol buffer feature user has come. Here is my additonal question for detailed specification:
{
id: string;
etc: (string & tags.Field<3>) | (number & tags.Field<5>) | (boolean & tags.Field<9>;
additional: Something;
} |
Thanks for getting back to me so fast. 1: Union type is fine. |
How about another word |
About this feature, I may try at next week's Saturday (2024-08-31). |
https://protobuf.dev/programming-guides/proto3/#assigning That as why I like the syntax |
About the naming, as I can starts this ticket at two weeks later, let's consider it for a while. I'm considering those cases:
|
Adding custom tag on object is not easy, and LLM funtion calling schema is urgent for me due to my business duty. I'm sorry but wait for a week more please. |
Prepare #1234: refactor metadata schema for `protobuf` sequencing.
Develop #1234: `Sequence<N>` tag and its validator on `ProtobufFactory`
Close #1234: completed `Sequence<N>` implementation for Protocol Buffer.
npm i typia@next https://github.com/samchon/typia/blob/v7.0/test/src/structures/ObjectSequenceProtobuf.ts @ShanonJackson You can use The next update would be formally published after enhancing the LLM schema, maybe 2 weeks later. |
Typia Version: "@latest 6.9.0"
Expected behavior: "Some way to add correct field ids when using proto serialization"
Actual behavior: "Typia uses invalid field ids when using proto serialization"
I have the following .proto file
Please note the missing '3'
I convert this to a typescript type.
I encode that typescript type.
Please note that in the binary output,
field3
should be marked as usingfield 4
but that information is "lossy" lost when you convert the .proto -> typescriptThis causes a bug for me because a downstream gRPC service expects correct field ids on correct fields (as per spec).
is there any way in typia I can do this?
Thanks and hope this makes sense.
The text was updated successfully, but these errors were encountered: