{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aisle-wedding/json-schema/aisle-wedding-recommendation-result-schema.json",
  "title": "RecommendationResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aisle-wedding-recommendations-api-openapi.yml#/components/schemas/RecommendationResult",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/PublicRecommendation"
    }
  },
  "$defs": {
    "PublicRecommendation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "description",
        "details_html",
        "emoji",
        "category",
        "difficulty",
        "external_url",
        "latitude",
        "longitude",
        "place_id",
        "audience_tags",
        "sort_order",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^rec_.+$"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "details_html": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "emoji": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "category": {
          "type": "string",
          "enum": [
            "hotel",
            "food",
            "activity",
            "sight"
          ],
          "description": "Responses may contain legacy hotel rows. New lodging belongs in properties and rooms; write requests cannot target hotel."
        },
        "difficulty": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "easy",
                "moderate",
                "challenging"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Non-null only for activity or sight recommendations."
        },
        "external_url": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "latitude": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "longitude": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "place_id": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "audience_tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sort_order": {
          "type": "integer"
        },
        "created_at": {
          "$ref": "#/$defs/Timestamp"
        }
      }
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "An RFC 3339 UTC timestamp with milliseconds."
    }
  }
}