changedInput schema / properties / items / items / anyOf
Previous value: -[
- {
- "description": "A flight, train, bus, ferry, car rental or drive. mode is required when adding.",
- "properties": {
- "agency": {
- "description": "Booked through (travel agency or site).",
- "type": [
- "string",
- "null"
- ]
- },
- "aircraft": {
- "description": "Aircraft type.",
- "type": [
- "string",
- "null"
- ]
- },
- "arrive_terminal": {
- "description": "Arrival terminal.",
- "type": [
- "string",
- "null"
- ]
- },
- "arrive_time": {
- "description": "Local arrival time \"HH:MM\", with \" +N\" if it lands N days after departure, e.g. \"05:20 +1\".",
- "type": [
- "string",
- "null"
- ]
- },
- "arrive_tz": {
- "description": "IANA time zone at arrival.",
- "type": [
- "string",
- "null"
- ]
- },
- "booking_ref": {
- "description": "Booking or confirmation reference.",
- "type": [
- "string",
- "null"
- ]
- },
- "cabin": {
- "description": "Cabin or class.",
- "type": [
- "string",
- "null"
- ]
- },
- "depart_date": {
- "description": "Departure date. Date, YYYY-MM-DD.",
- "type": [
- "string",
- "null"
- ]
- },
- "depart_terminal": {
- "description": "Departure terminal.",
- "type": [
- "string",
- "null"
- ]
- },
- "depart_time": {
- "description": "Local departure time \"HH:MM\".",
- "type": [
- "string",
- "null"
- ]
- },
- "depart_tz": {
- "description": "IANA time zone at departure, e.g. Australia/Sydney.",
- "type": [
- "string",
- "null"
- ]
- },
- "distance_km": {
- "description": "Distance in km, if known.",
- "type": [
- "number",
- "null"
- ]
- },
- "from_code": {
- "description": "Departure airport or station code, e.g. SYD.",
- "type": [
- "string",
- "null"
- ]
- },
- "from_country": {
- "description": "Country it leaves from (name or ISO code).",
- "type": [
- "string",
- "null"
- ]
- },
- "from_place": {
- "description": "Where it leaves from, e.g. Sydney or Sydney Airport.",
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "description": "Give the transport's id to update it; leave out to add one.",
- "type": "string"
- },
- "mode": {
- "description": "How: flight, train, bus, ferry, car_rental, drive or other.",
- "enum": [
- "flight",
- "train",
- "bus",
- "ferry",
- "car_rental",
- "drive",
- "other"
- ],
- "type": "string"
- },
- "notes": {
- "description": "Anything else worth keeping.",
- "type": [
- "string",
- "null"
- ]
- },
- "operating_carrier": {
- "description": "Operating carrier if different from the provider.",
- "type": [
- "string",
- "null"
- ]
- },
- "price_raw": {
- "description": "Price with currency, e.g. \"AUD 420.00\".",
- "type": [
- "string",
- "null"
- ]
- },
- "provider": {
- "description": "Airline, rail operator, bus or rental company, e.g. Qantas.",
- "type": [
- "string",
- "null"
- ]
- },
- "seats": {
- "description": "Seat numbers.",
- "type": [
- "string",
- "null"
- ]
- },
- "service": {
- "description": "Flight or service number, e.g. QF1.",
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "description": "Free text, e.g. \"Confirmed\".",
- "type": [
- "string",
- "null"
- ]
- },
- "ticket_numbers": {
- "description": "Ticket numbers.",
- "type": [
- "string",
- "null"
- ]
- },
- "to_code": {
- "description": "Arrival airport or station code, e.g. LHR.",
- "type": [
- "string",
- "null"
- ]
- },
- "to_country": {
- "description": "Country it arrives in.",
- "type": [
- "string",
- "null"
- ]
- },
- "to_place": {
- "description": "Where it arrives.",
- "type": [
- "string",
- "null"
- ]
- },
- "travellers": {
- "description": "Who travelled, by name. New names are added to the account's people.",
- "items": {
- "description": "A person's name, or \"me\".",
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "const": "transport",
- "description": "Always \"transport\".",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- {
- "description": "Accommodation. property is required when adding.",
- "properties": {
- "address": {
- "description": "Street address.",
- "type": [
- "string",
- "null"
- ]
- },
- "agency": {
- "description": "Booked through.",
- "type": [
- "string",
- "null"
- ]
- },
- "booking_ref": {
- "description": "Confirmation number.",
- "type": [
- "string",
- "null"
- ]
- },
- "check_in": {
- "description": "Check-in date. Date, YYYY-MM-DD.",
- "type": [
- "string",
- "null"
- ]
- },
- "check_out": {
- "description": "Check-out date. Date, YYYY-MM-DD.",
- "type": [
- "string",
- "null"
- ]
- },
- "city": {
- "description": "City the stay is in.",
- "type": [
- "string",
- "null"
- ]
- },
- "country": {
- "description": "Country (name or ISO code).",
- "type": [
- "string",
- "null"
- ]
- },
- "guests": {
- "description": "Number of guests.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": [
- "integer",
- "null"
- ]
- },
- "id": {
- "description": "Give the stay's id to update it; leave out to add one.",
- "type": "string"
- },
- "lat": {
- "description": "Latitude.",
- "type": [
- "number",
- "null"
- ]
- },
- "locality": {
- "description": "The city it belongs to, when the label is a suburb or area.",
- "type": [
- "string",
- "null"
- ]
- },
- "locality_country": {
- "description": "ISO alpha-2 of that city.",
- "type": [
- "string",
- "null"
- ]
- },
- "lon": {
- "description": "Longitude.",
- "type": [
- "number",
- "null"
- ]
- },
- "notes": {
- "description": "Anything else worth keeping.",
- "type": [
- "string",
- "null"
- ]
- },
- "price_raw": {
- "description": "Price with currency, e.g. \"EUR 540\".",
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "description": "Hotel or place name.",
- "minLength": 1,
- "type": "string"
- },
- "provider": {
- "description": "Booked with, e.g. Booking.com or the hotel chain.",
- "type": [
- "string",
- "null"
- ]
- },
- "room_type": {
- "description": "Room type.",
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "description": "Free text, e.g. \"Confirmed\".",
- "type": [
- "string",
- "null"
- ]
- },
- "travellers": {
- "description": "Who travelled, by name. New names are added to the account's people.",
- "items": {
- "description": "A person's name, or \"me\".",
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "const": "stay",
- "description": "Always \"stay\".",
- "type": "string"
- },
- "tz": {
- "description": "IANA time zone.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- {
- "description": "A restaurant, place, activity or note. kind and name are required when adding; name, kind and city can't be changed later. Updates can also set done and journal.",
- "properties": {
- "category": {
- "description": "restaurant, cafe, bar, attraction, museum, tour, concert, theatre, sport, nature, beach, spa, shopping, meeting, parking or place.",
- "type": [
- "string",
- "null"
- ]
- },
- "city": {
- "description": "City.",
- "type": [
- "string",
- "null"
- ]
- },
- "country": {
- "description": "Country (name or ISO code).",
- "type": [
- "string",
- "null"
- ]
- },
- "date": {
- "description": "Date, YYYY-MM-DD. Optional.",
- "type": [
- "string",
- "null"
- ]
- },
- "done": {
- "description": "Done (updates only).",
- "type": "boolean"
- },
- "id": {
- "description": "Give the activity's id to update it; leave out to add one.",
- "type": "string"
- },
- "journal": {
- "description": "A journal entry about it (updates only).",
- "type": [
- "string",
- "null"
- ]
- },
- "kind": {
- "description": "restaurant, place, activity or note.",
- "enum": [
- "restaurant",
- "place",
- "activity",
- "note"
- ],
- "type": "string"
- },
- "lat": {
- "description": "Latitude.",
- "type": [
- "number",
- "null"
- ]
- },
- "lon": {
- "description": "Longitude.",
- "type": [
- "number",
- "null"
- ]
- },
- "name": {
- "description": "What it is, e.g. teamLab Planets or Sukiyabashi Jiro.",
- "minLength": 1,
- "type": "string"
- },
- "note": {
- "description": "A note about it.",
- "type": [
- "string",
- "null"
- ]
- },
- "price_raw": {
- "description": "Price with currency.",
- "type": [
- "string",
- "null"
- ]
- },
- "rating": {
- "description": "1–5, for places already visited.",
- "maximum": 5,
- "minimum": 1,
- "type": [
- "integer",
- "null"
- ]
- },
- "time": {
- "description": "Local time \"HH:MM\". Optional.",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "const": "activity",
- "description": "Always \"activity\".",
- "type": "string"
- },
- "tz": {
- "description": "IANA time zone.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- {
- "description": "Spending that isn't a booking. Can only be added.",
- "properties": {
- "category": {
- "description": "food, transport, stay, activity, shopping or other.",
- "enum": [
- "food",
- "transport",
- "stay",
- "activity",
- "shopping",
- "other"
- ],
- "type": "string"
- },
- "date": {
- "description": "Date, YYYY-MM-DD. Optional.",
- "type": [
- "string",
- "null"
- ]
- },
- "description": {
- "description": "What the money went on.",
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "description": "Give the expense's id to update it; leave out to add one.",
- "type": "string"
- },
- "price_raw": {
- "description": "Amount with currency, e.g. \"JPY 3400\" or \"$25\".",
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "expense",
- "description": "Always \"expense\".",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- {
- "description": "A packing-list entry (Trvlrr Plus). text is required when adding.",
- "properties": {
- "done": {
- "description": "Packed.",
- "type": "boolean"
- },
- "id": {
- "description": "Give the packing_item's id to update it; leave out to add one.",
- "type": "string"
- },
- "section": {
- "description": "documents, clothing, tech, health or other.",
- "enum": [
- "documents",
- "clothing",
- "tech",
- "health",
- "other"
- ],
- "type": "string"
- },
- "text": {
- "description": "The item.",
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "packing_item",
- "description": "Always \"packing_item\".",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- {
- "description": "A place a trip visited, by its id from the trip's places. Update only.",
- "properties": {
- "country": {
- "description": "Country.",
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "description": "Give the place's id to update it; leave out to add one.",
- "type": "string"
- },
- "lat": {
- "description": "Latitude.",
- "maximum": 90,
- "minimum": -90,
- "type": "number"
- },
- "locality": {
- "description": "The city it belongs to.",
- "minLength": 1,
- "type": "string"
- },
- "locality_country": {
- "description": "ISO alpha-2 of that city.",
- "pattern": "^[A-Za-z]{2}$",
- "type": "string"
- },
- "lon": {
- "description": "Longitude.",
- "maximum": 180,
- "minimum": -180,
- "type": "number"
- },
- "type": {
- "const": "place",
- "description": "Always \"place\".",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "description": "A flight, train, bus, ferry, car rental or drive. mode is required when adding.",
+ "properties": {
+ "agency": {
+ "description": "Booked through (travel agency or site).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "aircraft": {
+ "description": "Aircraft type.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "arrive_terminal": {
+ "description": "Arrival terminal.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "arrive_time": {
+ "description": "Local arrival time \"HH:MM\", with \" +N\" if it lands N days after departure, e.g. \"05:20 +1\".",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "arrive_tz": {
+ "description": "IANA time zone at arrival.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "booking_ref": {
+ "description": "Booking or confirmation reference.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "cabin": {
+ "description": "Cabin or class.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "depart_date": {
+ "description": "Departure date. Date, YYYY-MM-DD.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "depart_terminal": {
+ "description": "Departure terminal.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "depart_time": {
+ "description": "Local departure time \"HH:MM\".",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "depart_tz": {
+ "description": "IANA time zone at departure, e.g. Australia/Sydney.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "distance_km": {
+ "description": "Distance in km, if known.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "from_code": {
+ "description": "Departure airport or station code, e.g. SYD.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "from_country": {
+ "description": "Country it leaves from (name or ISO code).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "from_place": {
+ "description": "Where it leaves from, e.g. Sydney or Sydney Airport.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "description": "Give the transport's id to update it; leave out to add one.",
+ "type": "string"
+ },
+ "mode": {
+ "description": "How: flight, train, bus, ferry, car_rental, drive or other.",
+ "enum": [
+ "flight",
+ "train",
+ "bus",
+ "ferry",
+ "car_rental",
+ "drive",
+ "other"
+ ],
+ "type": "string"
+ },
+ "notes": {
+ "description": "Anything else worth keeping.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "operating_carrier": {
+ "description": "Operating carrier if different from the provider.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payment_method": {
+ "description": "card or cash.",
+ "enum": [
+ "card",
+ "cash"
+ ],
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payment_status": {
+ "description": "paid, due (to pay before the trip) or on_arrival (pay there or on the day).",
+ "enum": [
+ "paid",
+ "due",
+ "on_arrival"
+ ],
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "price_raw": {
+ "description": "Price with currency, e.g. \"AUD 420.00\".",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "provider": {
+ "description": "Airline, rail operator, bus or rental company, e.g. Qantas.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "seats": {
+ "description": "Seat numbers.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "service": {
+ "description": "Flight or service number, e.g. QF1.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "description": "Free text, e.g. \"Confirmed\".",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "ticket_numbers": {
+ "description": "Ticket numbers.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to_code": {
+ "description": "Arrival airport or station code, e.g. LHR.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to_country": {
+ "description": "Country it arrives in.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to_place": {
+ "description": "Where it arrives.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "travellers": {
+ "description": "Who travelled, by name. New names are added to the account's people.",
+ "items": {
+ "description": "A person's name, or \"me\".",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "type": {
+ "const": "transport",
+ "description": "Always \"transport\".",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Accommodation. property is required when adding.",
+ "properties": {
+ "address": {
+ "description": "Street address.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "agency": {
+ "description": "Booked through.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "booking_ref": {
+ "description": "Confirmation number.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "check_in": {
+ "description": "Check-in date. Date, YYYY-MM-DD.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "check_in_time": {
+ "description": "Check-in time, HH:MM local; empty means mid-afternoon.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "check_out": {
+ "description": "Check-out date. Date, YYYY-MM-DD.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "check_out_time": {
+ "description": "Check-out time, HH:MM local; empty means late morning.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "city": {
+ "description": "City the stay is in.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "country": {
+ "description": "Country (name or ISO code).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "guests": {
+ "description": "Number of guests.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "id": {
+ "description": "Give the stay's id to update it; leave out to add one.",
+ "type": "string"
+ },
+ "lat": {
+ "description": "Latitude.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "locality": {
+ "description": "The city it belongs to, when the label is a suburb or area.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "locality_country": {
+ "description": "ISO alpha-2 of that city.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "lon": {
+ "description": "Longitude.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "notes": {
+ "description": "Anything else worth keeping.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payment_method": {
+ "description": "card or cash.",
+ "enum": [
+ "card",
+ "cash"
+ ],
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payment_status": {
+ "description": "paid, due (to pay before the trip) or on_arrival (pay there or on the day).",
+ "enum": [
+ "paid",
+ "due",
+ "on_arrival"
+ ],
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "price_raw": {
+ "description": "Price with currency, e.g. \"EUR 540\".",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "description": "Hotel or place name.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "provider": {
+ "description": "Booked with, e.g. Booking.com or the hotel chain.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "room_type": {
+ "description": "Room type.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "description": "Free text, e.g. \"Confirmed\".",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "travellers": {
+ "description": "Who travelled, by name. New names are added to the account's people.",
+ "items": {
+ "description": "A person's name, or \"me\".",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "type": {
+ "const": "stay",
+ "description": "Always \"stay\".",
+ "type": "string"
+ },
+ "tz": {
+ "description": "IANA time zone.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A restaurant, place, activity or note. kind and name are required when adding; name, kind and city can't be changed later. Updates can also set done and journal.",
+ "properties": {
+ "category": {
+ "description": "restaurant, cafe, bar, attraction, museum, tour, concert, theatre, sport, nature, beach, spa, shopping, meeting, parking or place.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "city": {
+ "description": "City.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "country": {
+ "description": "Country (name or ISO code).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "date": {
+ "description": "Date, YYYY-MM-DD. Optional.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "done": {
+ "description": "Done (updates only).",
+ "type": "boolean"
+ },
+ "id": {
+ "description": "Give the activity's id to update it; leave out to add one.",
+ "type": "string"
+ },
+ "journal": {
+ "description": "A journal entry about it (updates only).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "kind": {
+ "description": "restaurant, place, activity or note.",
+ "enum": [
+ "restaurant",
+ "place",
+ "activity",
+ "note"
+ ],
+ "type": "string"
+ },
+ "lat": {
+ "description": "Latitude.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "lon": {
+ "description": "Longitude.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "name": {
+ "description": "What it is, e.g. teamLab Planets or Sukiyabashi Jiro.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "note": {
+ "description": "A note about it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payment_method": {
+ "description": "card or cash.",
+ "enum": [
+ "card",
+ "cash"
+ ],
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payment_status": {
+ "description": "paid, due (to pay before the trip) or on_arrival (pay there or on the day).",
+ "enum": [
+ "paid",
+ "due",
+ "on_arrival"
+ ],
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "price_raw": {
+ "description": "Price with currency.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "rating": {
+ "description": "1–5, for places already visited.",
+ "maximum": 5,
+ "minimum": 1,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "remind_on": {
+ "description": "A day to be reminded about it. Date, YYYY-MM-DD. null clears it.",
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "remind_time": {
+ "description": "Time of day for the reminder, \"HH:MM\" local; empty means 09:00.",
+ "pattern": "^\\d{2}:\\d{2}$",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "time": {
+ "description": "Local time \"HH:MM\". Optional.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "type": {
+ "const": "activity",
+ "description": "Always \"activity\".",
+ "type": "string"
+ },
+ "tz": {
+ "description": "IANA time zone.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Spending that isn't a booking. Can only be added.",
+ "properties": {
+ "category": {
+ "description": "food, transport, stay, activity, shopping or other.",
+ "enum": [
+ "food",
+ "transport",
+ "stay",
+ "activity",
+ "shopping",
+ "other"
+ ],
+ "type": "string"
+ },
+ "date": {
+ "description": "Date, YYYY-MM-DD. Optional.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "description": {
+ "description": "What the money went on.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "description": "Give the expense's id to update it; leave out to add one.",
+ "type": "string"
+ },
+ "price_raw": {
+ "description": "Amount with currency, e.g. \"JPY 3400\" or \"$25\".",
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "expense",
+ "description": "Always \"expense\".",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A packing-list entry (Trvlrr Plus). text is required when adding.",
+ "properties": {
+ "done": {
+ "description": "Packed.",
+ "type": "boolean"
+ },
+ "id": {
+ "description": "Give the packing_item's id to update it; leave out to add one.",
+ "type": "string"
+ },
+ "remind_on": {
+ "description": "A day to be reminded about it. Date, YYYY-MM-DD. null clears it.",
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "remind_time": {
+ "description": "Time of day for the reminder, \"HH:MM\" local; empty means 09:00.",
+ "pattern": "^\\d{2}:\\d{2}$",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "section": {
+ "description": "documents, clothing, tech, health or other.",
+ "enum": [
+ "documents",
+ "clothing",
+ "tech",
+ "health",
+ "other"
+ ],
+ "type": "string"
+ },
+ "text": {
+ "description": "The item.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "packing_item",
+ "description": "Always \"packing_item\".",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A place a trip visited, by its id from the trip's places. Update only.",
+ "properties": {
+ "country": {
+ "description": "Country.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "description": "Give the place's id to update it; leave out to add one.",
+ "type": "string"
+ },
+ "lat": {
+ "description": "Latitude.",
+ "maximum": 90,
+ "minimum": -90,
+ "type": "number"
+ },
+ "locality": {
+ "description": "The city it belongs to.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "locality_country": {
+ "description": "ISO alpha-2 of that city.",
+ "pattern": "^[A-Za-z]{2}$",
+ "type": "string"
+ },
+ "lon": {
+ "description": "Longitude.",
+ "maximum": 180,
+ "minimum": -180,
+ "type": "number"
+ },
+ "type": {
+ "const": "place",
+ "description": "Always \"place\".",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+]