{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/odiseo-help/json-schema/odiseo-help-article-with-content-schema.json",
  "title": "ArticleWithContent",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/odiseo-help-openapi.json#/components/schemas/ArticleWithContent",
  "allOf": [
    {
      "$ref": "#/$defs/Article"
    },
    {
      "type": "object",
      "properties": {
        "html": {
          "type": "string",
          "description": "Semantic, sanitized HTML without the JSON-LD script"
        },
        "markdown": {
          "type": "string"
        },
        "jsonLd": {
          "type": [
            "object",
            "null"
          ],
          "description": "schema.org graph (Article, FAQPage) to render in <head>"
        },
        "faq": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "question": {
                "type": "string"
              },
              "answer": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "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"
        }
      }
    },
    "Section": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "title": {
          "type": "string"
        },
        "handle": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}