addedInput schema / properties / locale / description
Added value: +"Response language, one of the 20 published languages (en, ro, fr, de, es, it, sr, hr, pt, pl, cs, sk, hu, no, sv, el, bg, da, ar, tr). Spec labels and enum values come back translated. Default: en."
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": {},
+ "properties": {
+ "data": {
+ "description": "One entry per requested variant, in the order asked",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "specs": {
+ "additionalProperties": {
+ "additionalProperties": {},
+ "properties": {
+ "confidence": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Confidence score 0–1 for this value; null when not scored"
+ },
+ "label": {
+ "description": "Spec name in the requested language",
+ "type": "string"
+ },
+ "unit": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Unit of the value (km, kW, l/100km, …); null when unitless"
+ },
+ "value": {
+ "description": "The value: a string, number or boolean, already localized. Absent when the source holds no value"
+ }
+ },
+ "required": [
+ "label",
+ "unit",
+ "confidence"
+ ],
+ "type": "object"
+ },
+ "description": "Every spec the variant carries, keyed by spec key (e.g. range_wltp_km)",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "variant_id": {
+ "description": "Opaque variant id, e.g. v_1a2b3c4d. Pass it to get_specs / get_images / compare_variants.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "variant_id",
+ "specs"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "locale": {
+ "description": "Language the response is in",
+ "enum": [
+ "en",
+ "ro",
+ "fr",
+ "de",
+ "es",
+ "it",
+ "sr",
+ "hr",
+ "pt",
+ "pl",
+ "cs",
+ "sk",
+ "hu",
+ "no",
+ "sv",
+ "el",
+ "bg",
+ "da",
+ "ar",
+ "tr"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "locale",
+ "data"
+ ],
+ "type": "object"
+}