{
"id": "com.airplaneian.contrail.temp.trip",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"createdAt"
],
"properties": {
"name": {
"type": "string",
"maxLength": 640,
"description": "Free-text name for the trip. Public and permanent once published.",
"maxGraphemes": 64
},
"source": {
"type": "string",
"maxLength": 64,
"description": "Short identifier for the tool that wrote this record."
},
"flights": {
"type": "array",
"items": {
"type": "string",
"format": "at-uri"
},
"maxLength": 200,
"description": "The flights in this trip, in the order flown, as AT-URIs to flight records. Plain AT-URIs rather than strong references, since flight records are corrected in place. References may dangle; readers must tolerate that."
},
"sourceId": {
"type": "string",
"maxLength": 512,
"description": "That tool's own identifier for this trip. A grouping key may be sensitive even when the grouping is not: never write a booking reference here."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When this record was written, not when the trip happened. Explicit UTC offset, no fractional seconds."
}
}
},
"description": "An assertion that a set of flights belonged to one journey. Only 'createdAt' is required, and absent means unknown or not applicable. The reference points one way only, from trip to flight, and a trip references only flight records the author wrote."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}