Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-4497

Use proto field name in validation errors

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: On Hold
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Not 1.x
    • Fix Version/s: None
    • Component/s: PMM ManageD

      Description

      We use https://github.com/mwitkow/go-proto-validators for validation of incoming request on the first level. It generates errors with Go struct filed names, not with proto/JSON field names. That is confusing for the user of the API.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated: