{
"$type": "com.atproto.lexicon.schema",
"defs": {
"entry": {
"description": "One section of a guide: a heading, the places it highlights and optional editorial text.",
"properties": {
"note": {
"description": "Editorial text for this guide section. Does not modify the referenced place records.",
"maxGraphemes": 3000,
"maxLength": 18000,
"type": "string"
},
"places": {
"description": "The places this section highlights, as strong references to app.placita.place records.",
"items": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"maxLength": 20,
"minLength": 1,
"type": "array"
},
"title": {
"description": "Heading of this section.",
"maxGraphemes": 100,
"maxLength": 600,
"type": "string"
}
},
"required": [
"title",
"places"
],
"type": "object"
},
"main": {
"description": "A published city guide authored by a Placita account. It keeps place references and guide-specific editorial notes separate from each place record.",
"key": "tid",
"record": {
"properties": {
"city": {
"description": "City the guide covers.",
"maxGraphemes": 100,
"maxLength": 600,
"type": "string"
},
"countryCode": {
"description": "Optional ISO 3166-1 alpha-2 country code.",
"maxLength": 2,
"pattern": "^[A-Z]{2}$",
"type": "string"
},
"createdAt": {
"description": "When the guide was created.",
"format": "datetime",
"type": "string"
},
"description": {
"description": "Introduction to the guide.",
"maxGraphemes": 2000,
"maxLength": 12000,
"type": "string"
},
"entries": {
"description": "The guide's sections, in display order.",
"items": {
"ref": "#entry",
"type": "ref"
},
"maxLength": 80,
"type": "array"
},
"title": {
"description": "Title of the guide.",
"maxGraphemes": 100,
"maxLength": 600,
"type": "string"
},
"updatedAt": {
"description": "When the guide was last changed.",
"format": "datetime",
"type": "string"
}
},
"required": [
"title",
"city",
"entries",
"createdAt",
"updatedAt"
],
"type": "object"
},
"type": "record"
}
},
"id": "app.placita.guide",
"lexicon": 1
}