Details

    • Type: Admin & Maintenance Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: PMM ManageD
    • Labels:

      Description

      https://godoc.org/github.com/golang/protobuf/jsonpb#Marshaler allows `EmitDefaults` configuration. We should investigate how to use it grpc-gateway. That will make our API responses more clear.

      proxyMux := grpc_gateway.NewServeMux(grpc_gateway.WithMarshalerOption(grpc_gateway.MIMEWildcard, &grpc_gateway.JSONPb{OrigName: true, EmitDefaults: true})
      

      Plus good API tests that can check JSON responses, and manual testing.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alexey.palazhchenko Alexey Palazhchenko
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: