Skip to content
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

Add option to include fields that are equal to the default value in the JSON encoding #1526

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
441 changes: 221 additions & 220 deletions FuzzTesting/Sources/FuzzCommon/fuzz_testing.pb.swift

Large diffs are not rendered by default.

1,901 changes: 952 additions & 949 deletions Protos/SwiftProtobufTests/generated_swift_names_enum_cases.proto

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Protos/SwiftProtobufTests/generated_swift_names_enums.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ message GeneratedSwiftReservedEnums {
enum allCases { NONE_allCases = 0; }
enum allowAlias { NONE_allowAlias = 0; }
enum alwaysPrintEnumsAsInts { NONE_alwaysPrintEnumsAsInts = 0; }
enum alwaysPrintFieldsWithoutPresence { NONE_alwaysPrintFieldsWithoutPresence = 0; }
enum alwaysPrintInt64sAsNumbers { NONE_alwaysPrintInt64sAsNumbers = 0; }
enum alwaysVisitPrimitiveFields { NONE_alwaysVisitPrimitiveFields = 0; }
enum annotation { NONE_annotation = 0; }
enum any { NONE_any = 0; }
enum AnyExtensionField { NONE_AnyExtensionField = 0; }
Expand Down Expand Up @@ -834,6 +836,7 @@ message GeneratedSwiftReservedEnums {
enum totalArrayDepth { NONE_totalArrayDepth = 0; }
enum totalSize { NONE_totalSize = 0; }
enum trailingComments { NONE_trailingComments = 0; }
enum traversalOptions { NONE_traversalOptions = 0; }
enum traverse { NONE_traverse = 0; }
enum true { NONE_true = 0; }
enum try { NONE_try = 0; }
Expand Down
Loading