Skip to content

Commit

Permalink
Also accept literal field names
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaber committed Jul 11, 2023
1 parent 1e66883 commit 0aef973
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,18 @@ public Builder extensionRegistry(ExtensionRegistryWrapper extensionRegistry) {
return this;
}

public Builder acceptLiteralFieldnames(boolean acceptLiteralFieldnames) {
this.acceptLiteralFieldnames = acceptLiteralFieldnames;
return this;
}

public Builder useCanonicalSerialization() {
acceptLiteralFieldnames(true);
properUnsignedNumberSerialization(true);
serializeLongsAsString(true);
return this;
}

public Builder acceptLiteralFieldnames(boolean acceptLiteralFieldnames) {
this.acceptLiteralFieldnames = acceptLiteralFieldnames;
return this;
}

public Builder properUnsignedNumberSerialization(boolean properUnsignedNumberSerialization) {
this.properUnsignedNumberSerialization = properUnsignedNumberSerialization;
return this;
Expand Down

0 comments on commit 0aef973

Please sign in to comment.