{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/benmilne-com/json-schema/benmilne-com-paginated-posts-response-schema.json",
  "title": "PaginatedPostsResponse",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benmilne-com-openapi.json#/components/schemas/PaginatedPostsResponse",
  "type": "object",
  "properties": {
    "attribution": {
      "type": "string"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PostSummary"
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer"
        },
        "per_page": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        },
        "total_pages": {
          "type": "integer"
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "required": [
    "attribution",
    "data"
  ],
  "$defs": {
    "PostSummary": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "date": {
          "type": "string"
        },
        "modified": {
          "type": "string"
        },
        "author": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "language": {
          "type": "string"
        },
        "is_translation": {
          "type": "boolean"
        },
        "english_url": {
          "type": "string"
        },
        "translation": {
          "$ref": "#/$defs/TranslationMeta"
        }
      },
      "required": [
        "slug",
        "title",
        "date",
        "author",
        "url",
        "language"
      ]
    },
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "language": {
          "type": "string"
        },
        "source_language": {
          "type": "string"
        },
        "is_translation": {
          "type": "boolean"
        },
        "automated_translation": {
          "type": "boolean"
        },
        "disclaimer": {
          "type": "string"
        },
        "available_languages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "language",
        "source_language",
        "is_translation",
        "available_languages"
      ]
    },
    "TranslationMeta": {
      "type": "object",
      "properties": {
        "automated": {
          "type": "boolean"
        },
        "provider": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_language": {
          "type": "string"
        },
        "target_language": {
          "type": "string"
        },
        "verified": {
          "type": "boolean"
        },
        "stale": {
          "type": "boolean"
        },
        "fallback_used": {
          "type": "boolean"
        }
      }
    }
  }
}