Uploaded image for project: 'mod-inventory-storage'
  1. mod-inventory-storage
  2. MODINVSTOR-652

BE: Possible bug: numberOfPieces field defined as string type

    XMLWordPrintable

Details

    • Prokopovych

    Description

      Overview: In items, the JSON field numberOfPieces is defined as a string type although the data appear to be numbers. For reporting, this requires casting to an integer type and potentially other difficulties. (We have seen Unicode characters such as "2" within this field in deployed FOLIO instances; though I do not know if the data were imported via the proper APIs.) If possible, please consider whether an integer type might be more suitable for this field.

      In the item record (https://github.com/folio-org/mod-inventory-storage/blob/master/ramls/item.json)

      • The data property numberOfPieces is to be changed from being defined as type string to be type integer
      • The description of the data property is changed as well and should be: "Number of pieces"
      },
          "numberOfPieces": {
            "type": "integer",
            "description": "Number of pieces"
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                nassar Nassib Nassar
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:

                  TestRail: Runs

                    TestRail: Cases