{
	"id": "Trip.json",
	"title": "Trip",
	"description": "A trip or journey. An itinerary of visits to one or more places.",
	"media": {"type": "application/json;profile=http://schema.org/Trip"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Intangible.json"}],
	"type": "object",
	"properties": {
		"arrivalTime": {"$ref": "#/definitions/arrivalTime"},
		"departureTime": {"$ref": "#/definitions/departureTime"},
		"itinerary": {
			"oneOf": [
				{"$ref": "#/definitions/itinerary"},
				{
					"type": "array",
					"items": {"$ref": "#/definitions/itinerary"}
				}
			]
		},
		"offers": {"$ref": "Offer.json#/definitions/possibleRefArray"},
		"partOfTrip": {
			"oneOf": [
				{"$ref": "Trip.json#/definitions/possibleRef"},
				{
					"type": "array",
					"items": {"$ref": "Trip.json#/definitions/possibleRef"}
				}
			]
		},
		"provider": {"$ref": "#/definitions/provider"},
		"subTrip": {
			"oneOf": [
				{"$ref": "Trip.json#/definitions/possibleRef"},
				{
					"type": "array",
					"items": {"$ref": "Trip.json#/definitions/possibleRef"}
				}
			]
		}
	},
	"definitions": {
		"array": {
			"type": "array",
			"items": {"$ref": "#"}
		},
		"possibleRef": {
			"oneOf": [
				{"$ref": "#"},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"possibleRefArray": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/possibleRef"}
				},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"arrivalTime": {
			"title": "Arrival Time",
			"description": "The expected arrival time.",
			"anyOf": [
				{
					"type": "string",
					"format": "date-time"
				},
				{
					"type": "string",
					"format": "time"
				}
			]
		},
		"departureTime": {
			"title": "Departure Time",
			"description": "The expected departure time.",
			"anyOf": [
				{
					"type": "string",
					"format": "date-time"
				},
				{
					"type": "string",
					"format": "time"
				}
			]
		},
		"itinerary": {
			"title": "Itinerary",
			"description": "Destination(s) ( Place ) that make up a trip. For a trip where destination order is important use ItemList to specify that order (see examples).",
			"anyOf": [{"$ref": "ItemList.json#/definitions/possibleRef"}, {"$ref": "Place.json#/definitions/possibleRef"}]
		},
		"provider": {
			"title": "Provider",
			"description": "The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. Supersedes carrier.",
			"anyOf": [{"$ref": "Organization.json#/definitions/possibleRef"}, {"$ref": "Person.json#/definitions/possibleRef"}]
		}
	}
}