changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "legs": {
+ "type": "integer"
+ },
+ "summary": {
+ "type": "string"
+ },
+ "trip": {
+ "description": "The trip, in exactly the shape build_trip_link takes — so it can be rebuilt or amended without translation.",
+ "properties": {
+ "legs": {
+ "items": {
+ "properties": {
+ "craft": {
+ "description": "A small craft that travels WITH them — a bike on the car, a canoe on the roof.",
+ "enum": [
+ "Bike",
+ "Canoe",
+ "Kayak"
+ ],
+ "type": "string"
+ },
+ "date": {
+ "description": "YYYY-MM-DD. Optional — an undated leg keeps its place in the order.",
+ "type": "string"
+ },
+ "flight": {
+ "description": "Flight number if you have it, e.g. UA328. Never invent one.",
+ "type": "string"
+ },
+ "lodging": {
+ "description": "Where they stay at this destination — hotel, cabin, a friend's couch.",
+ "type": "string"
+ },
+ "mode": {
+ "description": "How they travel this leg. Defaults to drive.",
+ "enum": [
+ "drive",
+ "fly",
+ "train",
+ "ferry",
+ "water",
+ "bike",
+ "walk"
+ ],
+ "type": "string"
+ },
+ "note": {
+ "description": "Anything worth remembering about this leg. Optional.",
+ "type": "string"
+ },
+ "stayNote": {
+ "description": "Anything about the stay. Only meaningful alongside lodging.",
+ "type": "string"
+ },
+ "subtype": {
+ "description": "More precise than mode when you know it: own/rental/rv/taxi for drive, commercial/private for fly, canoe/kayak/sail for water.",
+ "enum": [
+ "own",
+ "rental",
+ "rideshare",
+ "taxi",
+ "bus",
+ "rv",
+ "commercial",
+ "private",
+ "heli",
+ "intercity",
+ "commuter",
+ "subway",
+ "tram",
+ "passenger",
+ "carferry",
+ "sail",
+ "motor",
+ "canoe",
+ "kayak",
+ "walk",
+ "hike",
+ "run",
+ "ebike"
+ ],
+ "type": "string"
+ },
+ "to": {
+ "description": "Where this leg ends.",
+ "properties": {
+ "lat": {
+ "description": "Latitude, -90 to 90.",
+ "type": "number"
+ },
+ "lng": {
+ "description": "Longitude, -180 to 180.",
+ "type": "number"
+ },
+ "name": {
+ "description": "How a person would say it, e.g. \"Moab, UT\".",
+ "type": "string"
+ }
+ },
+ "required": [
+ "lat",
+ "lng"
+ ],
+ "type": "object"
+ },
+ "who": {
+ "description": "Who travels this leg, if you know — e.g. [\"Mel\",\"Sam\"]. Lets the trip show who was where.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "to"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ },
+ "origin": {
+ "properties": {
+ "lat": {
+ "description": "Latitude, -90 to 90.",
+ "type": "number"
+ },
+ "lng": {
+ "description": "Longitude, -180 to 180.",
+ "type": "number"
+ },
+ "name": {
+ "description": "How a person would say it, e.g. \"Moab, UT\".",
+ "type": "string"
+ }
+ },
+ "required": [
+ "lat",
+ "lng"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "origin",
+ "legs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "trip",
+ "legs"
+ ],
+ "type": "object"
+}