{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://autoagentprotocol.org/v1.3/schemas/vehicle-detail-response.schema.json",
  "title": "VehicleDetailResponse",
  "description": "Typed AAP response for the `inventory.vehicle` skill. The `data` field is a Vehicle (v1.0 unified the former Vehicle + VehicleDetail into one type) and MAY be any vehicle type (`car`, `motorcycle`, `trailer`, `rv`, `other`), carrying the type-relevant fields (absent `vehicle_type` = car). Because it is always an inventory listing, `condition` is constrained to `new` | `used` | `cpo` and `status` (one of `available` | `intransit` | `pending`) is required. Carried inside an A2A `Message.parts[].data` DataPart returned from the `SendMessage` operation.",
  "type": "object",
  "properties": {
    "type": { "const": "inventory.vehicle.response" },
    "data": {
      "allOf": [
        { "$ref": "./vehicle.schema.json" },
        {
          "type": "object",
          "properties": {
            "condition": { "enum": ["new", "used", "cpo"] }
          },
          "required": ["status"]
        }
      ]
    },
    "message": {
      "type": "string",
      "description": "Optional contextual note. MAY be omitted.",
      "maxLength": 2000
    }
  },
  "required": ["type", "data"],
  "additionalProperties": false
}
