Skip to content

Commit

Permalink
fix: Respect stringEnums option in wrap function (#420)
Browse files Browse the repository at this point in the history
* Fix: Respect stringEnums option in wrap function

* Move test for string enum nullvalue to simple-string-enums
  • Loading branch information
boukeversteegh committed Dec 2, 2021
1 parent 3bbabc8 commit 7adf90c
Show file tree
Hide file tree
Showing 9 changed files with 492 additions and 6 deletions.
2 changes: 1 addition & 1 deletion integration/grpc-js/google/protobuf/struct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export const Value = {

wrap(value: any): Value {
if (value === null) {
return { nullValue: 0 } as Value;
return { nullValue: NullValue.NULL_VALUE } as Value;
} else if (typeof value === 'boolean') {
return { boolValue: value } as Value;
} else if (typeof value === 'number') {
Expand Down
Loading

0 comments on commit 7adf90c

Please sign in to comment.