Skip to content

Conversation

@flavoromission
Copy link
Contributor

Problem:
Missing fields are omitted.

Solution:
This fix sets the flag always_print_fields_with_no_presence in the invocation of the protobuff method
MessageToJson will display the missing fields.

see: MessageToJson https://github.com/protocolbuffers/protobuf/blob/6b36eb633ccc9c585ed1ead117fca91702814027/python/google/protobuf/json_format.py#L82
see: issue #506 #506

Problem:
Missing fields are omitted.

Solution:
This fix sets the flag `always_print_fields_with_no_presence`
in the invocation of the protobuff method
`MessageToJson` will display the missing fields.

see: MessageToJson https://github.com/protocolbuffers/protobuf/blob/6b36eb633ccc9c585ed1ead117fca91702814027/python/google/protobuf/json_format.py#L82
see: issue meshtastic#506 meshtastic#506
@CLAassistant
Copy link

CLAassistant commented Mar 18, 2024

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


flavor omission seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@ianmcorvidae
Copy link
Contributor

This looks pretty reasonable to me, but we can't merge it without a signed CLA. If you can do that, I think I'd be happy to get this in.

@flavoromission
Copy link
Contributor Author

The PR should be all set @ianmcorvidae

@ianmcorvidae
Copy link
Contributor

Excellent, thanks for signing that. I'll get this merged in, and thanks for the PR!

@ianmcorvidae ianmcorvidae merged commit 4c97866 into meshtastic:master Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants