{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinrebate-vip/json-schema/coinrebate-vip-guides-search-response-schema.json",
  "title": "GuidesSearchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinrebate-vip-guides-search-api-openapi.yml#/components/schemas/GuidesSearchResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "query",
    "results",
    "total"
  ],
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "results": {
      "type": "array",
      "maxItems": 10,
      "items": {
        "$ref": "#/$defs/GuideSearchResult"
      }
    },
    "total": {
      "type": "integer",
      "minimum": 0
    }
  },
  "$defs": {
    "GuideSearchResult": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "slug",
        "lang",
        "title",
        "description",
        "url",
        "date",
        "category"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "lang": {
          "type": "string",
          "enum": [
            "en",
            "cn",
            "tc",
            "jp",
            "kr",
            "ru",
            "ar",
            "pt"
          ]
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string",
          "maxLength": 200
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "date": {
          "type": "string"
        },
        "category": {
          "type": "string"
        }
      }
    }
  }
}