{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rrmacademy-org/json-schema/rrmacademy-org-bulk-article-response-schema.json",
  "title": "BulkArticleResponse",
  "description": "Returned by GET /api/articles/bulk and GET /api/bulk. Partial-failure batch response: found IDs are returned in results[]; IDs that did not resolve to a published article are listed in not_found[] rather than failing the whole request. The batch always returns HTTP 200 when the query is well-formed, even if every ID is missing. `requested` = count of unique IDs received (deduped, max 50); `returned` = results.length. requested === returned + not_found.length.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rrmacademy-org-openapi.json#/components/schemas/BulkArticleResponse",
  "type": "object",
  "required": [
    "results",
    "not_found",
    "requested",
    "returned"
  ],
  "properties": {
    "results": {
      "type": "array",
      "description": "Successfully resolved articles, in the deduped order of the requested IDs.",
      "items": {
        "$ref": "#/$defs/ArticleSummary"
      }
    },
    "not_found": {
      "type": "array",
      "description": "Requested IDs that did not resolve to a published article (partial-failure list).",
      "items": {
        "type": "string",
        "description": "Requested ID that did not resolve to a published article"
      }
    },
    "requested": {
      "type": "integer",
      "description": "Count of unique IDs received (after dedupe, capped at 50)."
    },
    "returned": {
      "type": "integer",
      "description": "Count of articles in results[]. Equals requested minus not_found.length."
    }
  },
  "$defs": {
    "ArticleSummary": {
      "type": "object",
      "required": [
        "id",
        "slug",
        "url",
        "title"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "title": {
          "type": "string"
        },
        "authors": {
          "type": "string"
        },
        "year": {
          "type": [
            "integer",
            "null"
          ]
        },
        "journal": {
          "type": "string"
        },
        "doi": {
          "type": "string"
        },
        "pmid": {
          "type": "string"
        },
        "abstract": {
          "type": "string"
        },
        "topics": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "is_open_access": {
          "type": "boolean"
        },
        "date_added": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        }
      }
    }
  }
}