Skip to content

feat: add utopia-vehicle-insurance VehicleInsuranceCredential example - #148

Open
applesnort wants to merge 1 commit into
credential-handler:mainfrom
applesnort:feat/utopia-vehicle-insurance
Open

feat: add utopia-vehicle-insurance VehicleInsuranceCredential example#148
applesnort wants to merge 1 commit into
credential-handler:mainfrom
applesnort:feat/utopia-vehicle-insurance

Conversation

@applesnort

Copy link
Copy Markdown

Summary

Adds a Utopia Vehicle Insurance Certificate credential — a generic example of a vehicle insurance record issued by a government motor vehicle agency.

  • Type: VehicleInsuranceCredential from the Vehicle Credentials Vocabulary
  • Fields: vehicleIdentificationNumber, manufacturer (Organization), owner (Person[] with PostalAddress), policyNumber, policyStartDate/policyEndDate, coverageAmount (MonetaryAmount), licensePlateIdentifier
  • Issuer: Utopia Department of Motor Vehicles
  • Subject: Jordan Casey, matching the person used across the other Utopia examples (employee badge, etc.)

Open questions for reviewers

  1. The vocabulary's own published example includes a credentialSubject.validFrom field, but v1rc2's VehicleInsuranceInformation type-scoped context doesn't actually define validFrom — VCDM v2 only scopes that term to VerifiableCredential, not arbitrary nested subjects, so it fails safe-mode JSON-LD validation as published. Dropped it here; flagging in case the vocabulary itself needs a fix upstream (not DB-maintained, so we can't fix it directly).
  2. No image/renderMethod yet, following the same deferred pattern as feat: add utopia-agency-employee-badge IdentificationDocument credential #144 — add a card design/render method now or in a follow-up?

Test plan

  • npm run check passes (verified locally)
  • Issue this credential from vc-playground
  • Verify it renders in Veres Wallet

Generic Utopia-branded example of a VehicleInsuranceCredential from
the vehicle-credentials-vocabulary (vvc). Follows the same pattern as
utopia-ambulance-driver (credential-handler#143) and utopia-agency-employee-badge
(credential-handler#144).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant