Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-146

Return application/json (error schema) for all errors

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 56, ACQ Sprint 57
    • Story Points:
      3
    • Development Team:
      Thunderjet

      Description

      In at least one case (non-unique po-number), we return a text/plain response. In the interest of consistency, we should return application/json conforming to the error schema from the raml project, just as RMB does for 422s.

      We should also make sure we're specifying a useful value in the 'code' field, e.g. poNumberNotUnique. These codes will likely be mapped to error messages presented to the user in the UI.

      Acceptance Criteria:

      • All (or as many as possible) error conditions return an application/json response conforming to the error schema from the raml project
      • useful values are provided in the 'code' field

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                varunjavalkar Varun Javalkar
                Reporter:
                cmcnally Craig McNally
                Tester Assignee:
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases