{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "summary": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 5000
        },
        {
          "type": "null"
        }
      ]
    },
    "cover_stop": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "intent": {
      "type": "string",
      "enum": ["date", "trip", "general"]
    },
    "structure": {
      "type": "string",
      "enum": ["itinerary", "collection"]
    },
    "area": {
      "type": "object",
      "properties": {
        "city": {
          "type": ["string", "null"]
        },
        "neighborhood": {
          "type": ["string", "null"]
        },
        "country": {
          "type": ["string", "null"]
        },
        "meta": {
          "type": "object",
          "properties": {
            "created_at": {
              "type": ["string", "null"]
            },
            "updated_at": {
              "type": ["string", "null"]
            },
            "deleted_at": {
              "type": ["string", "null"]
            },
            "legacy_ref": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "table": {
                      "type": "string"
                    },
                    "key": {
                      "type": ["string", "number"]
                    },
                    "row": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": ["table", "key", "row"],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "dataset": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      },
      "required": ["city", "neighborhood", "country"],
      "additionalProperties": false
    },
    "duration_s": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "budget": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "money": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "string",
                  "pattern": "^\\d+(?:\\.\\d+)?$"
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "min_amount": {
                  "type": "string",
                  "pattern": "^\\d+(?:\\.\\d+)?$"
                },
                "max_amount": {
                  "type": "string",
                  "pattern": "^\\d+(?:\\.\\d+)?$"
                },
                "text": {
                  "type": "string"
                },
                "meta": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": ["string", "null"]
                    },
                    "updated_at": {
                      "type": ["string", "null"]
                    },
                    "deleted_at": {
                      "type": ["string", "null"]
                    },
                    "legacy_ref": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "table": {
                              "type": "string"
                            },
                            "key": {
                              "type": ["string", "number"]
                            },
                            "row": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["table", "key", "row"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataset": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": ["amount", "currency"],
              "additionalProperties": false
            },
            "basis": {
              "type": "string",
              "enum": ["person", "group", "day", "trip"]
            },
            "meta": {
              "type": "object",
              "properties": {
                "created_at": {
                  "type": ["string", "null"]
                },
                "updated_at": {
                  "type": ["string", "null"]
                },
                "deleted_at": {
                  "type": ["string", "null"]
                },
                "legacy_ref": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "table": {
                          "type": "string"
                        },
                        "key": {
                          "type": ["string", "number"]
                        },
                        "row": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["table", "key", "row"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dataset": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "required": ["money", "basis"],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "budget_text": {
      "type": ["string", "null"]
    },
    "vibes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "best_time": {
      "type": ["string", "null"]
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "label": {
            "type": "string"
          },
          "date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "stops": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                },
                "ref": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "kind": {
                  "type": "string",
                  "enum": ["place", "event"]
                },
                "time_hint": {
                  "type": ["string", "null"]
                },
                "order": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "note": {
                  "type": ["string", "null"]
                },
                "transit_hint": {
                  "type": ["string", "null"]
                },
                "address": {
                  "type": ["string", "null"]
                },
                "city": {
                  "type": ["string", "null"]
                },
                "country": {
                  "type": ["string", "null"]
                },
                "starts_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ends_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "timezone": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "event": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string",
                          "minLength": 1
                        },
                        "summary": {
                          "type": ["string", "null"]
                        },
                        "display_location": {
                          "type": ["string", "null"]
                        },
                        "calendar_note": {
                          "type": "string"
                        },
                        "starts_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "ends_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "timezone": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "all_day": {
                          "type": "boolean"
                        },
                        "start_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "end_date_exclusive": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "time_text": {
                          "type": ["string", "null"]
                        },
                        "recurrence": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "rrule": {
                                  "type": "string"
                                },
                                "rdates": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                  }
                                },
                                "exdates": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                  }
                                },
                                "meta": {
                                  "type": "object",
                                  "properties": {
                                    "created_at": {
                                      "type": ["string", "null"]
                                    },
                                    "updated_at": {
                                      "type": ["string", "null"]
                                    },
                                    "deleted_at": {
                                      "type": ["string", "null"]
                                    },
                                    "legacy_ref": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "table": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": ["string", "number"]
                                            },
                                            "row": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": ["table", "key", "row"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "dataset": {
                                      "type": "string"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              },
                              "required": ["rrule", "rdates", "exdates"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "venue": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "address": {
                                  "type": ["string", "null"]
                                },
                                "place_ref": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "table": {
                                          "type": "string",
                                          "enum": ["place", "event_listing"]
                                        },
                                        "id": {
                                          "type": "string",
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                        },
                                        "meta": {
                                          "type": "object",
                                          "properties": {
                                            "created_at": {
                                              "type": ["string", "null"]
                                            },
                                            "updated_at": {
                                              "type": ["string", "null"]
                                            },
                                            "deleted_at": {
                                              "type": ["string", "null"]
                                            },
                                            "legacy_ref": {
                                              "anyOf": [
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "table": {
                                                      "type": "string"
                                                    },
                                                    "key": {
                                                      "type": ["string", "number"]
                                                    },
                                                    "row": {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 9007199254740991
                                                    }
                                                  },
                                                  "required": ["table", "key", "row"],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "dataset": {
                                              "type": "string"
                                            }
                                          },
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": ["table", "id"],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "city": {
                                  "type": ["string", "null"]
                                },
                                "country": {
                                  "type": ["string", "null"]
                                },
                                "meta": {
                                  "type": "object",
                                  "properties": {
                                    "created_at": {
                                      "type": ["string", "null"]
                                    },
                                    "updated_at": {
                                      "type": ["string", "null"]
                                    },
                                    "deleted_at": {
                                      "type": ["string", "null"]
                                    },
                                    "legacy_ref": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "table": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": ["string", "number"]
                                            },
                                            "row": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": ["table", "key", "row"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "dataset": {
                                      "type": "string"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              },
                              "required": ["name", "address", "place_ref"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "url": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uri"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                              },
                              "meta": {
                                "type": "object",
                                "properties": {
                                  "created_at": {
                                    "type": ["string", "null"]
                                  },
                                  "updated_at": {
                                    "type": ["string", "null"]
                                  },
                                  "deleted_at": {
                                    "type": ["string", "null"]
                                  },
                                  "legacy_ref": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "table": {
                                            "type": "string"
                                          },
                                          "key": {
                                            "type": ["string", "number"]
                                          },
                                          "row": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": ["table", "key", "row"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "dataset": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": ["name", "url", "id"],
                            "additionalProperties": false
                          }
                        },
                        "performers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "url": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uri"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                              },
                              "meta": {
                                "type": "object",
                                "properties": {
                                  "created_at": {
                                    "type": ["string", "null"]
                                  },
                                  "updated_at": {
                                    "type": ["string", "null"]
                                  },
                                  "deleted_at": {
                                    "type": ["string", "null"]
                                  },
                                  "legacy_ref": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "table": {
                                            "type": "string"
                                          },
                                          "key": {
                                            "type": ["string", "number"]
                                          },
                                          "row": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": ["table", "key", "row"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "dataset": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": ["name", "url", "id"],
                            "additionalProperties": false
                          }
                        },
                        "tickets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "url": {
                                "type": "string",
                                "format": "uri"
                              },
                              "label": {
                                "type": ["string", "null"]
                              },
                              "id": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                              },
                              "meta": {
                                "type": "object",
                                "properties": {
                                  "created_at": {
                                    "type": ["string", "null"]
                                  },
                                  "updated_at": {
                                    "type": ["string", "null"]
                                  },
                                  "deleted_at": {
                                    "type": ["string", "null"]
                                  },
                                  "legacy_ref": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "table": {
                                            "type": "string"
                                          },
                                          "key": {
                                            "type": ["string", "number"]
                                          },
                                          "row": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": ["table", "key", "row"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "dataset": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": ["url", "label", "id"],
                            "additionalProperties": false
                          }
                        },
                        "price": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^\\d+(?:\\.\\d+)?$"
                                },
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "min_amount": {
                                  "type": "string",
                                  "pattern": "^\\d+(?:\\.\\d+)?$"
                                },
                                "max_amount": {
                                  "type": "string",
                                  "pattern": "^\\d+(?:\\.\\d+)?$"
                                },
                                "text": {
                                  "type": "string"
                                },
                                "meta": {
                                  "type": "object",
                                  "properties": {
                                    "created_at": {
                                      "type": ["string", "null"]
                                    },
                                    "updated_at": {
                                      "type": ["string", "null"]
                                    },
                                    "deleted_at": {
                                      "type": ["string", "null"]
                                    },
                                    "legacy_ref": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "table": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": ["string", "number"]
                                            },
                                            "row": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": ["table", "key", "row"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "dataset": {
                                      "type": "string"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              },
                              "required": ["amount", "currency"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "price_text": {
                          "type": ["string", "null"]
                        },
                        "status": {
                          "type": "string",
                          "enum": ["scheduled", "cancelled", "past"]
                        },
                        "image_url": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^https?:\\/\\/"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "url": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uri"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "published_at": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "recovery": {
                                  "type": "object",
                                  "properties": {
                                    "url": {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    "method": {
                                      "type": "string"
                                    },
                                    "corroborating_urls": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "uri"
                                      }
                                    },
                                    "meta": {
                                      "type": "object",
                                      "properties": {
                                        "created_at": {
                                          "type": ["string", "null"]
                                        },
                                        "updated_at": {
                                          "type": ["string", "null"]
                                        },
                                        "deleted_at": {
                                          "type": ["string", "null"]
                                        },
                                        "legacy_ref": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "table": {
                                                  "type": "string"
                                                },
                                                "key": {
                                                  "type": ["string", "number"]
                                                },
                                                "row": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": ["table", "key", "row"],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "dataset": {
                                          "type": "string"
                                        }
                                      },
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": ["url", "method"],
                                  "additionalProperties": false
                                },
                                "structured_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "url": {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    "starts_at": {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                    },
                                    "ends_at": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "date-time",
                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "meta": {
                                      "type": "object",
                                      "properties": {
                                        "created_at": {
                                          "type": ["string", "null"]
                                        },
                                        "updated_at": {
                                          "type": ["string", "null"]
                                        },
                                        "deleted_at": {
                                          "type": ["string", "null"]
                                        },
                                        "legacy_ref": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "table": {
                                                  "type": "string"
                                                },
                                                "key": {
                                                  "type": ["string", "number"]
                                                },
                                                "row": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": ["table", "key", "row"],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "dataset": {
                                          "type": "string"
                                        }
                                      },
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": ["url", "starts_at", "ends_at"],
                                  "additionalProperties": false
                                },
                                "meta": {
                                  "type": "object",
                                  "properties": {
                                    "created_at": {
                                      "type": ["string", "null"]
                                    },
                                    "updated_at": {
                                      "type": ["string", "null"]
                                    },
                                    "deleted_at": {
                                      "type": ["string", "null"]
                                    },
                                    "legacy_ref": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "table": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": ["string", "number"]
                                            },
                                            "row": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": ["table", "key", "row"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "dataset": {
                                      "type": "string"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              },
                              "required": ["url", "published_at"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "completeness": {
                          "type": "object",
                          "properties": {
                            "missing": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "warnings": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "meta": {
                              "type": "object",
                              "properties": {
                                "created_at": {
                                  "type": ["string", "null"]
                                },
                                "updated_at": {
                                  "type": ["string", "null"]
                                },
                                "deleted_at": {
                                  "type": ["string", "null"]
                                },
                                "legacy_ref": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "table": {
                                          "type": "string"
                                        },
                                        "key": {
                                          "type": ["string", "number"]
                                        },
                                        "row": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": ["table", "key", "row"],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dataset": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": ["missing", "warnings"],
                          "additionalProperties": false
                        },
                        "meta": {
                          "type": "object",
                          "properties": {
                            "created_at": {
                              "type": ["string", "null"]
                            },
                            "updated_at": {
                              "type": ["string", "null"]
                            },
                            "deleted_at": {
                              "type": ["string", "null"]
                            },
                            "legacy_ref": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "table": {
                                      "type": "string"
                                    },
                                    "key": {
                                      "type": ["string", "number"]
                                    },
                                    "row": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": ["table", "key", "row"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dataset": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "title",
                        "summary",
                        "starts_at",
                        "ends_at",
                        "timezone",
                        "all_day",
                        "venue",
                        "tickets",
                        "price",
                        "url"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "meta": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": ["string", "null"]
                    },
                    "updated_at": {
                      "type": ["string", "null"]
                    },
                    "deleted_at": {
                      "type": ["string", "null"]
                    },
                    "legacy_ref": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "table": {
                              "type": "string"
                            },
                            "key": {
                              "type": ["string", "number"]
                            },
                            "row": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["table", "key", "row"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataset": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "ref",
                "name",
                "kind",
                "time_hint",
                "order",
                "note",
                "transit_hint",
                "address",
                "city",
                "country",
                "starts_at",
                "ends_at",
                "timezone",
                "event"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": ["id", "label", "date", "timezone", "stops"],
        "additionalProperties": false
      }
    },
    "tips": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "completeness": {
      "type": "object",
      "properties": {
        "missing": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "meta": {
          "type": "object",
          "properties": {
            "created_at": {
              "type": ["string", "null"]
            },
            "updated_at": {
              "type": ["string", "null"]
            },
            "deleted_at": {
              "type": ["string", "null"]
            },
            "legacy_ref": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "table": {
                      "type": "string"
                    },
                    "key": {
                      "type": ["string", "number"]
                    },
                    "row": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": ["table", "key", "row"],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "dataset": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      },
      "required": ["missing", "warnings"],
      "additionalProperties": false
    },
    "meta": {
      "type": "object",
      "properties": {
        "created_at": {
          "type": ["string", "null"]
        },
        "updated_at": {
          "type": ["string", "null"]
        },
        "deleted_at": {
          "type": ["string", "null"]
        },
        "legacy_ref": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "table": {
                  "type": "string"
                },
                "key": {
                  "type": ["string", "number"]
                },
                "row": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": ["table", "key", "row"],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "dataset": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "title",
    "intent",
    "structure",
    "area",
    "duration_s",
    "budget",
    "budget_text",
    "vibes",
    "best_time",
    "days",
    "tips",
    "completeness"
  ],
  "additionalProperties": false,
  "$id": "https://sendtopigeon.com/schemas/guide@1.schema.json",
  "title": "Pigeon Open Data: guide@1",
  "$comment": "Apache-2.0. Structural schema; use Zod/parseRecord for semantic invariants. This published schema URL is immutable.",
  "examples": [
    {
      "title": "demo",
      "intent": "date",
      "structure": "itinerary",
      "area": {
        "city": null,
        "neighborhood": null,
        "country": null
      },
      "duration_s": 0,
      "budget": {
        "money": {
          "amount": "72.5000",
          "currency": "USD"
        },
        "basis": "person"
      },
      "budget_text": null,
      "vibes": [],
      "best_time": null,
      "days": [],
      "tips": [],
      "completeness": {
        "missing": [],
        "warnings": []
      }
    }
  ]
}
