Uploaded image for project: 'mod-feesfines'
  1. mod-feesfines
  2. MODFEE-91

account JSON schema id properties are missing regex pattern for UUID validation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      The account JSON schema contains the following properties.

          "loanId": {
            "description": "ID of the loan",
            "type": "string"
          },
          "userId": {
            "description": "ID of the user",
            "type": "string"
          },
          "itemId": {
            "description": "ID of the item",
            "type": "string"
          },
          "materialTypeId": {
            "description": "ID of the materialType",
            "type": "string"
          },
          "feeFineId": {
            "description": "ID of the feefines",
            "type": "string"
          },
          "ownerId": {
            "description": "ID of the owner",
            "type": "string"
          },
          "id": {
            "description": "User fine/fee account id, UUID",
            "type": "string"
          },
      

      JSON properties that contain a UUID should have a pattern like the regex listed below for validating that the field can only contain UUID values.

              "createdByUserId": {
                "description": "ID of the user who created the record (when available)",
                "type": "string",
                "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
              },
      

      I noticed this because I ran into a separate issue where the loanId property is being set to "0" which I will create a separate JIRA for.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                jemiller Jon Miller
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases