{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kvartiry-phuket-com/json-schema/kvartiry-phuket-com-article-schema.json",
  "title": "Article",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kvartiry-phuket-com-openapi.yml#/components/schemas/Article",
  "type": "object",
  "required": [
    "slug",
    "url",
    "title",
    "outline",
    "attribution"
  ],
  "properties": {
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string"
    },
    "h1": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "date_modified": {
      "type": "string",
      "format": "date"
    },
    "markdown_url": {
      "type": "string",
      "format": "uri"
    },
    "intro": {
      "type": "string"
    },
    "outline": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "faq_questions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "attribution": {
      "$ref": "#/$defs/Attribution"
    }
  },
  "$defs": {
    "Attribution": {
      "type": "object",
      "required": [
        "source",
        "source_url",
        "license",
        "required_credit_html",
        "reuse_policy"
      ],
      "properties": {
        "source": {
          "type": "string"
        },
        "source_url": {
          "type": "string",
          "format": "uri"
        },
        "title": {
          "type": "string"
        },
        "license": {
          "type": "string"
        },
        "license_url": {
          "type": "string",
          "format": "uri"
        },
        "terms_ru": {
          "type": "string"
        },
        "required_credit_html": {
          "type": "string"
        },
        "required_credit_text": {
          "type": "string"
        },
        "citation_request": {
          "type": "string"
        },
        "reuse_policy": {
          "type": "string",
          "format": "uri"
        },
        "photos": {
          "type": "string"
        },
        "photos_en": {
          "type": "string"
        }
      }
    }
  }
}