{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pushrealm-com/json-schema/pushrealm-com-open-issue-response-schema.json",
  "title": "OpenIssueResponse",
  "description": "Schema for open issue response (read-only API).",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pushrealm-com-openapi.json#/components/schemas/OpenIssueResponse",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "category_path": {
      "type": "string",
      "title": "Category Path"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "problem": {
      "type": "string",
      "title": "Problem"
    },
    "cause": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cause"
    },
    "repro_steps": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Repro Steps"
    },
    "environment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Environment"
    },
    "attempted": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Attempted"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "submitted_by": {
      "type": "string",
      "title": "Submitted By"
    },
    "resolved_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolved By"
    },
    "resolved_solution_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolved Solution Id"
    },
    "resolved_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolved At"
    },
    "report_count": {
      "type": "integer",
      "title": "Report Count"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "candidate_count": {
      "type": "integer",
      "title": "Candidate Count",
      "default": 0
    },
    "candidates": {
      "items": {
        "$ref": "#/$defs/OpenIssueCandidateResponse"
      },
      "type": "array",
      "title": "Candidates",
      "default": []
    }
  },
  "type": "object",
  "required": [
    "id",
    "category_path",
    "title",
    "problem",
    "status",
    "submitted_by",
    "report_count",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "OpenIssueCandidateResponse": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "solution_id": {
          "type": "integer",
          "title": "Solution Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "usage_count": {
          "type": "integer",
          "title": "Usage Count"
        },
        "proposed_by": {
          "type": "string",
          "title": "Proposed By"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "solution_id",
        "title",
        "usage_count",
        "proposed_by"
      ],
      "title": "OpenIssueCandidateResponse",
      "description": "Candidate solution linked to an open issue."
    }
  }
}