diff --git a/api/orchestration.go b/api/orchestration.go index 5e78cf9..e707105 100644 --- a/api/orchestration.go +++ b/api/orchestration.go @@ -198,8 +198,9 @@ func WithRerunInput(input any) RerunOptions { } } -// protoMarshaler uses UseProtoNames so JSON output uses snake_case field names. -var protoMarshaler = protojson.MarshalOptions{UseProtoNames: true} +// protoMarshaler uses default protojson options so JSON output uses camelCase +// field names (the protojson default). +var protoMarshaler = protojson.MarshalOptions{} // marshalData serializes v to JSON. Proto message types use protojson for // correct handling of well-known types (e.g. google.protobuf.Struct); diff --git a/task/executor.go b/task/executor.go index c40ff41..0d79cbf 100644 --- a/task/executor.go +++ b/task/executor.go @@ -187,9 +187,9 @@ func (te taskExecutor) Shutdown(ctx context.Context) error { return nil } -// protoMarshaler uses UseProtoNames so JSON output uses snake_case field names -// (matching the proto field names), which is the convention for workflow payloads. -var protoMarshaler = protojson.MarshalOptions{UseProtoNames: true} +// protoMarshaler uses default protojson options so JSON output uses camelCase +// field names (the protojson default). +var protoMarshaler = protojson.MarshalOptions{} func unmarshalData(data []byte, v any) error { if v == nil {