frostfs-api-go/util/protogen/internalgengo
Evgenii Stratonikov 1ec1762d3a
Some checks failed
DCO action / DCO (pull_request) Failing after 56s
Tests and linters / Tests with -race (pull_request) Successful in 1m10s
Tests and linters / Lint (pull_request) Successful in 1m15s
Tests and linters / Tests (pull_request) Successful in 1m29s
protogen: Always marshal empty fields
This is how it was done previously:
a0a9b765f3/rpc/message/encoding.go (L31)

The tricky part is `[]byte` which is marshaled as `null` by easyjson
helper, but as `""` by protojson.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-10-07 15:04:13 +03:00
..
file.go [#107] protogen: Unify oneof getters with default protoc plugin 2024-08-26 14:36:19 +03:00
fuzz.go [#77] protogen: Initial implementation 2024-08-19 10:47:00 +03:00
getter.go [#77] protogen: Initial implementation 2024-08-19 10:47:00 +03:00
json.go protogen: Always marshal empty fields 2024-10-07 15:04:13 +03:00
options.go [#77] protogen: Initial implementation 2024-08-19 10:47:00 +03:00
proto.go [#111] protogen: Emit slice of messages without a pointer 2024-08-28 11:53:08 +03:00
proto_field_type.go [#111] protogen: Emit slice of messages without a pointer 2024-08-28 11:53:08 +03:00
proto_stable_compat.go [#111] protogen: Emit slice of messages without a pointer 2024-08-28 11:53:08 +03:00
writer.go [#77] protogen: Initial implementation 2024-08-19 10:47:00 +03:00