Atlassian · Schema

participant

CodeCollaborationPlatformProductivitySoftware Development
View JSON Schema on GitHub

JSON Schema

atlassian-participant-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/participant",
  "title": "participant",
  "allOf": [
    {
      "$ref": "#/components/schemas/object"
    },
    {
      "type": "object",
      "title": "Participant",
      "description": "Object describing a user's role on resources like commits or pull requests.",
      "properties": {
        "user": {
          "$ref": "#/components/schemas/account"
        },
        "role": {
          "type": "string",
          "enum": [
            "PARTICIPANT",
            "REVIEWER"
          ]
        },
        "approved": {
          "type": "boolean"
        },
        "state": {
          "type": "string",
          "enum": [
            "approved",
            "changes_requested",
            null
          ]
        },
        "participated_on": {
          "type": "string",
          "description": "The ISO8601 timestamp of the participant's action. For approvers, this is the time of their approval. For commenters and pull request reviewers who are not approvers, this is the time they last commented, or null if they have not commented.",
          "format": "date-time"
        }
      },
      "additionalProperties": true
    }
  ]
}