{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://schema.123lease.nl/draft-02/vehicle/add#",
  "$comment": "Versie 1.0.0",
  "title": "Vehicle add",
  "description": "A vehicle insertion request",
  "type": "object",
  "additionalProperties": false,
  "required": ["meta", "customer", "vehicle"],
  "properties": {
    "$schema": {
      "type": "string",
      "format": "uri"
    },
    "meta": {
      "title": "Metadata",
      "description": "Informatie over de aanvraag zelf",
      "type": "object",
      "required": [
        "version",
        "action"
      ],
      "properties": {
        "action": {
          "type": "string",
          "const": "add"
        }
      }
    },
    "customer": {
      "title": "Customer data",
      "description": "Informatie over de autodealer die de auto aanbied",
      "type": "object",
      "required": [
        "id"
      ]
    },
    "vehicle": {
      "title": "Voertuig data",
      "description": "Informatie over het voertuig zelf",
      "type": "object",
      "required": [
        "acceleration",
        "accessories",
        "additionPercentage",
        "averageConsumption",
        "baseColour",
        "bodywork",
        "bpmPrice",
        "brand",
        "brandWarranty",
        "cargoContentsBanksFolded",
        "co2Emissions",
        "colour",
        "consignment",
        "constructionDate",
        "consumption",
        "contacts",
        "country",
        "customWarranty",
        "cylinderContents",
        "cylinderCount",
        "damagedVehicle",
        "dealerPrice",
        "demo",
        "directLink",
        "documents",
        "doorCount",
        "drive",
        "e10Approved",
        "elongated",
        "emissionClass",
        "energyLabel",
        "euroNcapRating",
        "expected",
        "exportPrice",
        "factoryWarranty",
        "fiscalValue",
        "fuel",
        "fullyAutomatic",
        "gvw",
        "height",
        "highlights",
        "images",
        "interiorColour",
        "labels",
        "length",
        "lining",
        "loadMaximum",
        "location",
        "maintenanceLogs",
        "mass",
        "maxPullWeightUnrestrained",
        "maxRoofLoad",
        "mileage",
        "model",
        "modelCode",
        "modelDate",
        "motTest",
        "napLabel",
        "newPrice",
        "newPriceRecalculated",
        "newVehicle",
        "paintColour",
        "particulateEmissions",
        "powerUsage",
        "priceDiscount",
        "pricePrivate",
        "priceTrade",
        "productionYear",
        "pullMass",
        "raised",
        "range",
        "receivedDate",
        "refurbishmentCost",
        "reservationPrice",
        "reserved",
        "roadTax",
        "roadworthyCost",
        "saleDate",
        "searchAccessories",
        "searchTerms",
        "seatCount",
        "sold",
        "suffix",
        "takeOutPrice",
        "tankContents",
        "taxType",
        "title",
        "topSpeed",
        "transmission",
        "type",
        "vehicleDates",
        "vehicleKind",
        "videos",
        "vin",
        "warrantyBovag",
        "warrantyComments",
        "warrantyMileage",
        "warrantyMonths",
        "wheelCount",
        "width"
      ]
    }
  }
}
