{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-fusion/json-schema/oracle-fusion-task-schema.json",
  "title": "Task",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-fusion-common-features-openapi.json#/components/schemas/Task",
  "required": [
    "href",
    "mediaType",
    "rel"
  ],
  "type": "object",
  "properties": {
    "href": {
      "type": "string",
      "format": "uri"
    },
    "linkId": {
      "type": "string"
    },
    "hreflang": {
      "type": "string"
    },
    "length": {
      "type": "integer",
      "format": "int32"
    },
    "rel": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "mediaType": {
      "type": "string"
    },
    "actionList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TaskActionLink"
      }
    },
    "permissions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "assignedDate": {
      "type": "string"
    },
    "createdBy": {
      "type": "string"
    },
    "dueDate": {
      "type": "string"
    },
    "fromUserDisplayName": {
      "type": "string"
    },
    "fromUserName": {
      "type": "string"
    },
    "groupByName": {
      "type": "string"
    },
    "groupByValue": {
      "type": "string"
    },
    "number": {
      "type": "integer",
      "format": "int32"
    },
    "priority": {
      "type": "integer",
      "format": "int32"
    },
    "taskId": {
      "type": "string"
    },
    "taskDefinitionName": {
      "type": "string"
    },
    "taskNamespace": {
      "type": "string"
    },
    "titlePrefix": {
      "type": "string",
      "description": "shown only for current assignee or creator of task"
    },
    "createdDate": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "ownerGroup": {
      "type": "string"
    },
    "ownerRole": {
      "type": "string"
    },
    "ownerUser": {
      "type": "string"
    },
    "applicationName": {
      "type": "string"
    },
    "assignees": {
      "$ref": "#/$defs/CollectionIdentity"
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Attachment"
      }
    },
    "history": {
      "$ref": "#/$defs/TaskHistories"
    },
    "comments": {
      "$ref": "#/$defs/Comments"
    },
    "payload": {
      "$ref": "#/$defs/TaskSummaryField"
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    },
    "detailsURL": {
      "$ref": "#/$defs/Link"
    },
    "hasSubTasksFlag": {
      "type": "boolean",
      "default": false
    },
    "outcome": {
      "type": "string"
    },
    "startDate": {
      "type": "string"
    },
    "identificationKey": {
      "type": "string"
    },
    "updatedDate": {
      "type": "string"
    },
    "getcListURL": {
      "$ref": "#/$defs/Link"
    },
    "formMetadata": {
      "type": "string"
    },
    "externalUIURL": {
      "type": "string"
    },
    "rootTaskNumber": {
      "type": "string"
    },
    "applicationContext": {
      "type": "string"
    }
  },
  "$defs": {
    "Attachment": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri"
        },
        "rel": {
          "type": "string"
        },
        "attachmentName": {
          "type": "string"
        },
        "content": {
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        },
        "attachmentScope": {
          "type": "string"
        },
        "docAttributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GenericMap"
          }
        },
        "input": {
          "type": "string"
        },
        "uri": {
          "$ref": "#/$defs/Link"
        }
      }
    },
    "CollectionIdentity": {
      "type": "object",
      "properties": {
        "totalResult": {
          "type": "boolean",
          "default": false
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "userLink": {
          "$ref": "#/$defs/Link"
        },
        "count": {
          "type": "integer",
          "format": "int32"
        },
        "offset": {
          "type": "integer",
          "format": "int32"
        },
        "hasMore": {
          "type": "boolean",
          "default": false
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Identity"
          }
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      }
    },
    "Comment": {
      "type": "object",
      "properties": {
        "commentStr": {
          "type": "string"
        }
      }
    },
    "Comments": {
      "type": "object",
      "properties": {
        "comment": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Comment"
          }
        }
      }
    },
    "GenericMap": {
      "type": "object",
      "properties": {
        "dataType": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "readOnly": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "category": {
          "type": "string"
        }
      }
    },
    "Identity": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "identity": {
          "$ref": "#/$defs/Link"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "middleName": {
          "type": "string"
        },
        "mobile": {
          "type": "string"
        },
        "workPhone": {
          "type": "string"
        }
      }
    },
    "Link": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "description": "href of the provided link",
          "format": "uri"
        },
        "rel": {
          "type": "string",
          "description": "relationship with the returned resource"
        }
      }
    },
    "TaskActionLink": {
      "required": [
        "href",
        "mediaType",
        "rel"
      ],
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri"
        },
        "linkId": {
          "type": "string"
        },
        "hreflang": {
          "type": "string"
        },
        "length": {
          "type": "integer",
          "format": "int32"
        },
        "rel": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "mediaType": {
          "type": "string"
        }
      }
    },
    "TaskHistories": {
      "type": "object",
      "properties": {
        "taskHistory": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TaskHistory"
          }
        }
      }
    },
    "TaskHistory": {
      "type": "object",
      "properties": {
        "actionName": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "userId": {
          "type": "string"
        },
        "pattern": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "updatedDate": {
          "type": "string"
        }
      }
    },
    "TaskSummaryField": {
      "type": "object",
      "properties": {
        "summaryFields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GenericMap"
          }
        },
        "comment": {
          "type": "string"
        },
        "priority": {
          "type": "integer",
          "format": "int32"
        },
        "xmlPayload": {
          "type": "string"
        }
      }
    }
  }
}