{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-thepub-v1-feed-schedule-occurrences-response-schema.json",
  "title": "FeedScheduleOccurrencesResponse",
  "description": "The response for `FeedScheduleOccurrences`",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/safetyculture-data-feeds-api-openapi.yml#/components/schemas/s12.thepub.v1.FeedScheduleOccurrencesResponse",
  "type": "object",
  "properties": {
    "metadata": {
      "description": "The metadata for the feed.",
      "allOf": [
        {
          "$ref": "#/$defs/s12.thepub.v1.FeedMetadata"
        }
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/s12.thepub.v1.FeedScheduleOccurrencesResponse.FeedScheduleOccurrence"
      },
      "description": "The schedule occurrences returned."
    }
  },
  "$defs": {
    "s12.thepub.v1.FeedMetadata": {
      "type": "object",
      "properties": {
        "next_page": {
          "type": "string",
          "description": "The path to fetch the next page on."
        },
        "remaining_records": {
          "type": "integer",
          "format": "int32",
          "description": "Estimated remaining records."
        }
      },
      "description": "The metadata returned on a feed",
      "title": "FeedMetadata"
    },
    "s12.thepub.v1.FeedScheduleOccurrencesResponse.FeedScheduleOccurrence": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique schedule occurrence ID."
        },
        "schedule_id": {
          "type": "string",
          "description": "Schedule ID."
        },
        "occurrence_id": {
          "type": "string",
          "description": "Occurrence ID."
        },
        "template_id": {
          "type": "string",
          "description": "Template ID."
        },
        "start_time": {
          "type": "string",
          "format": "date-time",
          "description": "Start time of the occurrence."
        },
        "miss_time": {
          "type": "string",
          "format": "date-time",
          "description": "Miss time of the occurrence."
        },
        "due_time": {
          "type": "string",
          "format": "date-time",
          "description": "Due time of the occurrence."
        },
        "occurrence_status": {
          "type": "string",
          "description": "Status of the occurrence."
        },
        "audit_id": {
          "type": "string",
          "description": "Inspection ID associated with the occurrence."
        },
        "completed_at": {
          "type": "string",
          "format": "date-time",
          "description": "Time the occurrence was completed."
        },
        "user_id": {
          "type": "string",
          "description": "User ID assigned to this occurrence."
        },
        "assignee_status": {
          "type": "string",
          "description": "Status of the user assigned to this occurrence."
        },
        "organisation_id": {
          "type": "string",
          "description": "Organisation ID that owns this occurrence."
        },
        "note": {
          "type": "string",
          "description": "Notes for the occurrence."
        }
      },
      "description": "A schedule occurrence returned from `FeedScheduleOccurrences`",
      "title": "FeedScheduleOccurrence"
    }
  }
}