-
Notifications
You must be signed in to change notification settings - Fork 481
Open
Labels
⚠️ semver/majorBreaks existing public API.Breaks existing public API.
Description
Developing using iOS12, Swift 5, proto3 . I am about to add an extension which can support to output fields with their default values. I just want to check whether it is already implemented.
Based on proto doc, it looks like
JSON options
A proto3 JSON implementation may provide the following options:
Emit fields with default values: Fields with default values are omitted by default in proto3 JSON output. An implementation may provide an option to override this behavior and output fields with their default values.
I wonder does swift version has option to output fileds with their default values. I found python version has it MessageToJson(message, including_default_value_fields=False)
Metadata
Metadata
Assignees
Labels
⚠️ semver/majorBreaks existing public API.Breaks existing public API.