addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / consumption
Added value: +{
+ "description": "tripCost only: the vehicle fuel economy, expressed in consumptionUnit. Must be greater than zero.",
+ "exclusiveMinimum": 0,
+ "type": "number"
+}
addedInput schema / properties / consumptionUnit
Added value: +{
+ "description": "tripCost only: unit of the consumption figure. Same four enum values as fromUnit.",
+ "enum": [
+ "mpg_us",
+ "mpg_uk",
+ "l_per_100km",
+ "km_per_l"
+ ],
+ "type": "string"
+}
addedInput schema / properties / distance
Added value: +{
+ "description": "tripCost only: trip distance, expressed in distanceUnit.",
+ "minimum": 0,
+ "type": "number"
+}
addedInput schema / properties / distanceUnit
Added value: +{
+ "description": "tripCost only: unit of distance. km=kilometres, mi=miles.",
+ "enum": [
+ "km",
+ "mi"
+ ],
+ "type": "string"
+}
addedInput schema / properties / fromUnit / description
Added value: +"convertConsumption only: unit of the input value. mpg_us=miles per US gallon, mpg_uk=miles per Imperial gallon, l_per_100km=litres per 100km, km_per_l=kilometres per litre."
addedInput schema / properties / fromUnit / enum
Added value: +[
+ "mpg_us",
+ "mpg_uk",
+ "l_per_100km",
+ "km_per_l"
+]
addedInput schema / properties / operation / default
Added value: +"convertConsumption"
addedInput schema / properties / operation / description
Added value: +"\"convertConsumption\" converts one economy value between units (needs value, fromUnit, toUnit). \"tripCost\" estimates trip fuel and cost (needs distance, distanceUnit, consumption, consumptionUnit, pricePerUnit, priceUnit)."
addedInput schema / properties / operation / enum
Added value: +[
+ "convertConsumption",
+ "tripCost"
+]
addedInput schema / properties / pricePerUnit
Added value: +{
+ "description": "tripCost only: fuel price per volume unit, expressed in priceUnit currency and volume.",
+ "minimum": 0,
+ "type": "number"
+}
addedInput schema / properties / priceUnit
Added value: +{
+ "description": "tripCost only: currency + volume the price refers to. Determines the output currency (USD/EUR/GBP) and the volume (US gallon, UK gallon, or litre) pricePerUnit is multiplied by.",
+ "enum": [
+ "usd_per_gal_us",
+ "usd_per_gal_uk",
+ "usd_per_l",
+ "eur_per_l",
+ "gbp_per_l",
+ "gbp_per_gal_uk"
+ ],
+ "type": "string"
+}
addedInput schema / properties / toUnit / description
Added value: +"convertConsumption only: unit to convert the value into. Same four enum values as fromUnit."
addedInput schema / properties / toUnit / enum
Added value: +[
+ "mpg_us",
+ "mpg_uk",
+ "l_per_100km",
+ "km_per_l"
+]
addedInput schema / properties / value / description
Added value: +"convertConsumption only: the fuel-economy value to convert, expressed in fromUnit. Must be greater than zero for mpg_us, mpg_uk, and km_per_l."
addedInput schema / properties / value / minimum
Added value: +0
changedInput schema / properties / value / type
Previous value: -"integer"New value: +"number"
changedInput schema / required
Previous value: -[
- "operation",
- "value",
- "fromUnit",
- "toUnit"
-]New value: +[
+ "operation"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "data": {
+ "description": "convertConsumption returns fromUnit/toUnit/fromValue/toValue/formattedFrom/formattedTo. tripCost returns distance/consumption/fuelNeeded/totalCost/pricePerUnit/currency and formatted strings.",
+ "properties": {
+ "consumption": {
+ "description": "tripCost: fuel economy in its original unit.",
+ "type": "number"
+ },
+ "costFormatted": {
+ "description": "tripCost: total cost with currency, e.g. \"$48 USD\".",
+ "type": "string"
+ },
+ "currency": {
+ "description": "tripCost: ISO 4217 currency of totalCost, derived from priceUnit.",
+ "enum": [
+ "USD",
+ "EUR",
+ "GBP"
+ ],
+ "type": "string"
+ },
+ "distance": {
+ "description": "tripCost: trip distance in its original unit.",
+ "type": "number"
+ },
+ "distanceFormatted": {
+ "description": "tripCost: distance with unit, e.g. \"400 km\".",
+ "type": "string"
+ },
+ "formattedFrom": {
+ "description": "convertConsumption: input value with unit symbol, e.g. \"30 mpg (US)\".",
+ "type": "string"
+ },
+ "formattedTo": {
+ "description": "convertConsumption: converted value with unit symbol.",
+ "type": "string"
+ },
+ "fromUnit": {
+ "description": "convertConsumption: source economy unit.",
+ "type": "string"
+ },
+ "fromValue": {
+ "description": "convertConsumption: input value as supplied.",
+ "type": "number"
+ },
+ "fuelFormatted": {
+ "description": "tripCost: fuel needed with unit, e.g. \"32 L\".",
+ "type": "string"
+ },
+ "fuelNeeded": {
+ "description": "tripCost: fuel required for the trip, in litres.",
+ "type": "number"
+ },
+ "pricePerUnit": {
+ "description": "tripCost: fuel price per unit as supplied.",
+ "type": "number"
+ },
+ "toUnit": {
+ "description": "convertConsumption: target economy unit.",
+ "type": "string"
+ },
+ "toValue": {
+ "description": "convertConsumption: converted value in toUnit.",
+ "type": "number"
+ },
+ "totalCost": {
+ "description": "tripCost: total fuel cost in the price unit currency.",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "operation": {
+ "description": "Echoes the operation that was run (defaults to convertConsumption when omitted).",
+ "enum": [
+ "convertConsumption",
+ "tripCost"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+}