Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-3322

API 2.0 : Users : UserDTO schema does not flag all required fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 10.99.0
    • 10.96
    • REST API
    • 1
    • Severity 3 - Minor
    • No

      Issue Summary

      Fields divisionId, regionId, cityId and costCenterId are mandatory in Users (UI and API), but the Swagger UserDTO schema doesn't reflect that.

      Steps to Reproduce

      1. Browse to Swagger then expand UserDTO schema
      2. Notice that divisionId, regionId, cityId and costCenterId does not have the required attribute
      3. They're also flagged as nullable: true

      Expected Results

      • The fields divisionId, regionId, cityId and costCenterId have the required attribute
      • The fields divisionId, regionId, cityId and costCenterId does not have the nullable: true attribute
      • PdM to confrm

      Actual Results

      • The fields divisionId, regionId, cityId and costCenterId does not have the required attribute
      • The fields divisionId, regionId, cityId and costCenterId have the nullable: true attribute

      Workaround

      • Currently there is no known workaround for this behavior. A workaround will be added here when available.

        1. Screen Shot 2021-06-22 at 15.43.21.png
          334 kB
          Rodrigo Cortez
        2. Screen Shot 2021-06-22 at 16.05.59.png
          185 kB
          Rodrigo Cortez

            kforeman@atlassian.com Kyle Foreman
            rcortez@atlassian.com Rodrigo Cortez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: