{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/odiseo-help/json-schema/odiseo-help-article-schema.json",
  "title": "Article",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/odiseo-help-openapi.json#/components/schemas/Article",
  "type": "object",
  "required": [
    "id",
    "siteId",
    "status",
    "language",
    "slug",
    "title",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "siteId": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "const": "live"
    },
    "language": {
      "type": "string"
    },
    "slug": {
      "type": "string",
      "description": "Never changes once published"
    },
    "title": {
      "type": "string"
    },
    "excerpt": {
      "type": [
        "string",
        "null"
      ]
    },
    "seo": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Primary keyword first"
    },
    "author": {
      "type": [
        "string",
        "null"
      ]
    },
    "section": {
      "$ref": "#/$defs/Section"
    },
    "coverImage": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "alt": {
          "type": [
            "string",
            "null"
          ]
        },
        "width": {
          "type": [
            "integer",
            "null"
          ]
        },
        "height": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Canonical public URL, when known"
    },
    "wordCount": {
      "type": "integer"
    },
    "readingTimeMinutes": {
      "type": "integer"
    },
    "translations": {
      "type": "array",
      "description": "Other live language versions, for hreflang",
      "items": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "publishedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "Section": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "title": {
          "type": "string"
        },
        "handle": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}