{ "$id": "https://schemas.aramis.group/catalog/base.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "$defs": { "vin-string": { "type": ["null", "string"], "pattern": "^[A-HJ-NPR-Z0-9]{17}$" }, "offer-type-id": { "enum": ["new", "used", "0km", "nearly-new"] }, "status-id": { "enum": ["available", "sold", "reserved", "available-soon"] }, "euronorm-string": { "enum": ["1", "2", "3", "4", "5", "5a", "5b", "6", "6a", "6b", "6c", "6d-TEMP", "6d"] }, "critair-string": { "enum": ["0", "1", "2", "3", "4", "5"] }, "simple-color-id": { "enum": ["white","black","silver","grey","blue","red","green","yellow","brown","orange","beige","other"] }, "simple-equipment-id": { "enum": ["7-seats","air-conditioning","gps","leather","leather-alcantara","alloy-wheels","reverse-radar","cruise-control","sunroof","4x4","bluetooth","reverse-camera","apple-carplay","android-auto","high-seat,"] }, "country-id": { "enum": ["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","CPV","KHM","CMR","CAN","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COD","COG","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","UMI","USA","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"] }, "category-id": { "enum": ["minivan","mpv","sedan","station-wagon","urban","hatchback","sport","convertible","suv","van"] }, "segment-id": { "enum": ["company","family"] }, "energy-type-id": { "enum": ["gasoline","diesel","electric","biodiesel","ethanol","lpg","cng","hydrogen,","hybrid","full-hybrid","hybrid-gasoline","hybrid-diesel","plugin-hybrid","plugin-hybrid-gasoline","plugin-hybrid-diesel","mild-hybrid","mild-hybrid-gasoline","mild-hybrid-diesel"] }, "french-genre-string": { "enum": ["CAM","CL","CTTE","CYCL","MAGA","MIAR","MTL","MTT1","MTT2","QM","REA","REM","RESP","RETC","SRAT","SREA","SREM","SRSP","SRTC","TCP","TM","TRA","TRR","VASP","VP"] }, "transmission-id": { "enum": ["manual","automatic"] }, "drive-id": { "enum": ["fwd","rwd","4wd"] }, "equipment-category-id": { "enum": ["comfort","multimedia","interior","exterior","security","other"] }, "nullable-engine-capacity": { "type": "object", "additionalProperties": false, "required": ["cc"], "properties": { "cc": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-consumption": { "type": "object", "additionalProperties": false, "required": ["ltPer100Km", "kwhPer100Km"], "properties": { "ltPer100Km": { "type": ["null","number"], "exclusiveMinimum": 0 }, "kwhPer100Km": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-co2-emissions": { "type": "object", "additionalProperties": false, "required": ["gramsPerKm"], "properties": { "gramsPerKm": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-length": { "type": "object", "additionalProperties": false, "required": ["meters"], "properties": { "meters": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-weight": { "type": "object", "additionalProperties": false, "required": ["kg"], "properties": { "kg": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-volume": { "type": "object", "additionalProperties": false, "required": ["lt"], "properties": { "lt": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-speed": { "type": "object", "additionalProperties": false, "required": ["kmPerHour"], "properties": { "kmPerHour": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-distance": { "type": "object", "additionalProperties": false, "required": ["km"], "properties": { "km": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-percent-0-100": { "type": "object", "additionalProperties": false, "required": ["percent"], "properties": { "percent": { "type": ["null","number"], "minimum": 0, "maximum": 100 } }}, "nullable-energy": { "type": "object", "additionalProperties": false, "required": ["kwh"], "properties": { "kwh": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-power": { "type": "object", "additionalProperties": false, "required": ["kw"], "properties": { "kw": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-current": { "type": "object", "additionalProperties": false, "required": ["amperes"], "properties": { "amperes": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-duration-minutes": { "type": "object", "additionalProperties": false, "required": ["minutes"], "properties": { "minutes": { "type": ["null","number"], "exclusiveMinimum": 0 } }}, "nullable-warranty-period": { "type": "object", "additionalProperties": false, "required": ["km", "years"], "properties": { "km": { "type": ["null","number"], "exclusiveMinimum": 0 }, "years": { "type": ["null","number"], "exclusiveMinimum": 0 } }} } }