{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/defianceinternational-io/json-schema/defianceinternational-io-list-blog-posts-200-schema.json",
  "title": "listBlogPosts.200",
  "description": "One page of published blog posts, newest first.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/defianceinternational-io-content-api-openapi.yml#/components/schemas/listBlogPosts.200",
  "type": "object",
  "properties": {
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "excerpt": {
            "type": [
              "string",
              "null"
            ]
          },
          "author": {
            "type": "string"
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "coverImage": {
            "type": [
              "string",
              "null"
            ]
          },
          "coverMedia": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "altText": {
                    "type": "string",
                    "description": "Empty when the media is decorative."
                  },
                  "isDecorative": {
                    "type": "boolean"
                  },
                  "sourceTier": {
                    "type": "string",
                    "enum": [
                      "MEASURED",
                      "MODELED",
                      "REPRESENTATIVE",
                      "DERIVED",
                      "ABSENT"
                    ],
                    "description": "Provenance tier of the media."
                  },
                  "sourceId": {
                    "type": "string"
                  },
                  "reviewedBy": {
                    "type": "string"
                  }
                },
                "required": [
                  "url",
                  "altText",
                  "isDecorative",
                  "sourceTier",
                  "sourceId",
                  "reviewedBy"
                ],
                "additionalProperties": false,
                "description": "Reviewed media with its provenance; absent when the stored markers do not qualify it."
              },
              {
                "type": "null"
              }
            ]
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "journeyModule": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "primaryLabel": {
                    "type": "string"
                  },
                  "primaryPath": {
                    "type": "string",
                    "description": "Internal site path of the primary next step."
                  },
                  "relatedPaths": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Internal site paths of related next steps."
                  }
                },
                "required": [
                  "primaryLabel",
                  "primaryPath",
                  "relatedPaths"
                ],
                "additionalProperties": false,
                "description": "Reviewed next-step module for one content item."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "title",
          "slug",
          "excerpt",
          "author",
          "category",
          "tags",
          "coverImage",
          "coverMedia",
          "publishedAt",
          "journeyModule"
        ],
        "additionalProperties": false,
        "description": "Published blog post summary; the body is omitted."
      }
    },
    "total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "page": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "limit": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "totalPages": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "researchUseOnly": {
      "type": "string",
      "description": "The boundary statement, stated once at the top level.",
      "pattern": "^Research use only\\. Not for human consumption\\.$"
    }
  },
  "required": [
    "posts",
    "total",
    "page",
    "limit",
    "totalPages",
    "researchUseOnly"
  ],
  "additionalProperties": false
}