{
  "$schema": "https://govschema.org/spec/v0.1/govschema.schema.json",
  "govschemaVersion": "0.1.0",
  "id": "us/ca/dmv/vehicle-registration-renewal",
  "version": "1.0.0",
  "title": "California Vehicle Registration Renewal",
  "description": "Reference schema illustrating the GovSchema document format for a subnational renewal process. Field set is illustrative and provided as a format example; consult the live source before relying on it.",
  "status": "draft",
  "jurisdiction": {
    "country": "US",
    "subdivision": "US-CA",
    "level": "subnational"
  },
  "authority": {
    "name": "California Department of Motor Vehicles",
    "abbreviation": "CA DMV",
    "url": "https://www.dmv.ca.gov/"
  },
  "process": {
    "type": "renewal",
    "language": "en-US"
  },
  "source": {
    "url": "https://www.dmv.ca.gov/portal/vehicle-registration/registration-renewals/",
    "retrievedAt": "2026-06-30",
    "documentRef": "Vehicle Registration Renewal Notice"
  },
  "verification": {
    "method": "manual-source-review-v1",
    "lastVerifiedAt": "2026-06-30",
    "verifiedBy": "GovSchema Engineering",
    "nextReviewBy": "2026-12-30",
    "notes": "Reference/example schema. Field set illustrative; not yet independently re-verified against the live source."
  },
  "license": "CC-BY-4.0",
  "fields": [
    {
      "name": "vehicleIdentificationNumber",
      "label": "Vehicle Identification Number (VIN)",
      "type": "string",
      "required": true,
      "sourceRef": "Renewal notice, top section",
      "validation": {
        "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
        "minLength": 17,
        "maxLength": 17
      }
    },
    {
      "name": "licensePlateNumber",
      "label": "License Plate Number",
      "type": "string",
      "required": true,
      "sourceRef": "Renewal notice, top section",
      "validation": { "maxLength": 8 }
    },
    {
      "name": "registeredOwnerLastName",
      "label": "Registered Owner Last Name",
      "type": "string",
      "required": true
    },
    {
      "name": "currentMileage",
      "label": "Current Odometer Reading",
      "type": "integer",
      "required": false,
      "validation": { "minimum": 0 }
    },
    {
      "name": "hasSmogCertification",
      "label": "Smog certification on file",
      "type": "boolean",
      "required": false
    }
  ],
  "steps": [
    {
      "id": "identify_vehicle",
      "title": "Identify the vehicle",
      "fields": ["vehicleIdentificationNumber", "licensePlateNumber", "registeredOwnerLastName"],
      "next": "confirm_details"
    },
    {
      "id": "confirm_details",
      "title": "Confirm registration details",
      "fields": ["currentMileage", "hasSmogCertification"]
    }
  ]
}
