{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/metricool/json-schema/metricool-json-ok-response-reviewer-posts-decision-response-schema.json",
  "title": "JsonOkResponseReviewerPostsDecisionResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metricool-approval-task-api-service-api-openapi.yml#/components/schemas/JsonOkResponseReviewerPostsDecisionResponse",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object"
    },
    "page": {
      "$ref": "#/$defs/JsonPaging"
    },
    "data": {
      "$ref": "#/$defs/ReviewerPostsDecisionResponse"
    }
  },
  "$defs": {
    "JsonPaging": {
      "type": "object",
      "properties": {
        "next": {
          "type": "string"
        }
      }
    },
    "ReviewerPostDecisionResult": {
      "type": "object",
      "properties": {
        "postId": {
          "type": "integer",
          "description": "The post this result refers to.",
          "format": "int32"
        },
        "reviewerStatus": {
          "type": "string",
          "description": "This reviewer's new decision on the post.",
          "enum": [
            "approved",
            "rejected"
          ]
        },
        "postApprovalStatus": {
          "type": "string",
          "description": "Recomputed post-level approval status after this decision. Informational; normally present on success, absent only if the post was removed or the re-read failed."
        },
        "error": {
          "type": "string",
          "description": "Failure reason when the decision was not applied to a post. NOT_FOUND, NOT_ACTIONABLE and FORBIDDEN are terminal; ERROR is transient and retryable.",
          "enum": [
            "NOT_FOUND",
            "NOT_ACTIONABLE",
            "FORBIDDEN",
            "ERROR"
          ]
        }
      },
      "description": "Outcome of the reviewer's decision for a single post."
    },
    "ReviewerPostsDecisionResponse": {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "description": "One result per requested post, in request order.",
          "items": {
            "$ref": "#/$defs/ReviewerPostDecisionResult"
          }
        }
      },
      "description": "Per-post outcomes of a reviewer's approve/reject action, one entry per requested post."
    }
  }
}