Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-5997

Invalid "lastSync" JSON schema syntax in managed.json

    Details

      Description

      managed.json (all occurrences of this file) has some invalid JSON Schema syntax where "items" : "object" should be changed to "items" : { "type" : "object" }

      managed.json
                          "lastSync" : {
                              "type" : "object",
                              "scope" : "private",
                              "viewable" : false,
                              "searchable" : false,
                              "properties" : {
                                  "effectiveAssignments" : {
                                      "type" : "array",
                                      "items" : "object"
                                  },
                                  "timestamp" : {
                                      "type" : "string"
                                  }
                              }
                          }
      

      It should be changed to the following, and the underlying functionality re-tested,

      managed.json
                          "lastSync" : {
                              "type" : "object",
                              "scope" : "private",
                              "viewable" : false,
                              "searchable" : false,
                              "properties" : {
                                  "effectiveAssignments" : {
                                      "type" : "array",
                                      "items" : {
                                          "type" : "object"
                                      }
                                  },
                                  "timestamp" : {
                                      "type" : "string"
                                  }
                              }
                          }
      

      Reference: https://spacetelescope.github.io/understanding-json-schema/reference/array.html#items

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                travis.haagen Travis Haagen
                Reporter:
                travis.haagen Travis Haagen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: