{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stickerbyvin-com/json-schema/stickerbyvin-com-availability-schema.json",
  "title": "Availability",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stickerbyvin-com-openapi.json#/components/schemas/Availability",
  "type": "object",
  "properties": {
    "vin": {
      "type": "string"
    },
    "vehicle": {
      "$ref": "#/$defs/Vehicle"
    },
    "originalSticker": {
      "type": "object",
      "properties": {
        "onFile": {
          "type": "boolean"
        },
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "tier": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "factoryDataSticker": {
      "type": "object",
      "properties": {
        "available": {
          "type": "boolean"
        },
        "label": {
          "type": "string"
        }
      }
    },
    "recallCount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Recall campaigns for the model year; null when NHTSA could not be checked (unknown, not zero)"
    },
    "paint": {
      "$ref": "#/$defs/Paint"
    },
    "checkedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "Paint": {
      "type": "object",
      "properties": {
        "location": {
          "type": "string"
        },
        "looksLike": {
          "type": "string"
        },
        "guideUrl": {
          "type": "string"
        },
        "codeOnFile": {
          "type": "boolean"
        },
        "code": {
          "type": [
            "string",
            "null"
          ]
        },
        "colorName": {
          "type": [
            "string",
            "null"
          ]
        },
        "locked": {
          "type": "boolean"
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Vehicle": {
      "type": "object",
      "properties": {
        "vin": {
          "type": [
            "string",
            "null"
          ]
        },
        "make": {
          "type": [
            "string",
            "null"
          ]
        },
        "model": {
          "type": [
            "string",
            "null"
          ]
        },
        "trim": {
          "type": [
            "string",
            "null"
          ]
        },
        "trimSource": {
          "type": [
            "string",
            "null"
          ]
        },
        "series": {
          "type": [
            "string",
            "null"
          ]
        },
        "bodyClass": {
          "type": [
            "string",
            "null"
          ]
        },
        "driveType": {
          "type": [
            "string",
            "null"
          ]
        },
        "engine": {
          "type": [
            "string",
            "null"
          ]
        },
        "fuel": {
          "type": [
            "string",
            "null"
          ]
        },
        "transmission": {
          "type": [
            "string",
            "null"
          ]
        },
        "doors": {
          "type": [
            "string",
            "null"
          ]
        },
        "plant": {
          "type": [
            "string",
            "null"
          ]
        },
        "manufacturer": {
          "type": [
            "string",
            "null"
          ]
        },
        "vehicleType": {
          "type": [
            "string",
            "null"
          ]
        },
        "gvwr": {
          "type": [
            "string",
            "null"
          ]
        },
        "electrification": {
          "type": [
            "string",
            "null"
          ]
        },
        "year": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    }
  }
}