{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rrmacademy-org/json-schema/rrmacademy-org-article-list-schema.json",
  "title": "ArticleList",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rrmacademy-org-openapi.json#/components/schemas/ArticleList",
  "type": "object",
  "required": [
    "page",
    "limit",
    "total",
    "total_pages",
    "results"
  ],
  "properties": {
    "page": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "total_pages": {
      "type": "integer"
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque cursor for the next page, or null when the list is exhausted. Pass back as the `cursor` query param. Present on every response (offset and cursor modes alike)."
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ArticleSummary"
      }
    }
  },
  "$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"
        }
      }
    }
  }
}