-
Notifications
You must be signed in to change notification settings - Fork 75
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
Solution for the issue of snake_case
fields being lost after calling the create
method
#1001
Conversation
…the create method
From the manual:
We want to keep Protobuf-ES simple and focused, and while this change may not impact existing functionality, it does not help with these goals. The better solution would be to write a function |
OK, no problem. Could you please revoke my CLA on cla-assistant.io? I signed a bit hastily, and there are some issues regarding my ability to sign the CLA on behalf of my employer. Had I known you weren't planning to merge it, I wouldn't have done so. Thank you for your understanding. |
I cannot revoke your CLA. But you can, on https://cla-assistant.io/my-cla |
No, I can't. The list is empty when I open it, which is why I'm reaching out to you. My understanding is that it requires a maintainer to delete it. cla-assistant/cla-assistant#907 |
Have you tried signing in first on https://cla-assistant.io/ ? When I do that, I see CLAs I've signed on https://cla-assistant.io/my-cla, and I have a button to revoke: |
We have looked into it, but we don't see a way to revoke it. For some context, I don't believe that the state of this PR (or any past ones) will change by revoking a CLA, only future ones. If it would be possible to retroactively revoke a CLA for a contribution, OSS could not safely accept any contributions. But you haven't contributed, and as far as I understand, you have revoked your CLA for future contributions. IANAL, but it looks to me like this is void. |
Alright, I agree that revoking the CLA won't affect the status of existing PRs, but based on my understanding, the CLA for future contributions is still active, and I think that could lead to potential legal issues. Thank you very much for your assistance. I will go ahead and open a ticket in the cla-assistant/cla-assistant project. |
Description
Given the following data:
And the corresponding
proto
definition:When using this setup in the
create
method:The
"sample_content"
field will be ignored and not converted correctly.Analysis
In the
initMessage
method ofcreate.ts
, the value is accessed usingmember.localName
:At this point, the value of
member.localName
has already been converted tocamelCase
, resulting in"sampleContent"
, which does not match the originalsnake_case
format of"sample_content"
, causing this field to be ignored.Solution
To address this issue, modify the code as follows:
This change will resolve the issue without impacting the existing functionality.