feat: add utopia-vehicle-insurance VehicleInsuranceCredential example - #148
Open
applesnort wants to merge 1 commit into
Open
feat: add utopia-vehicle-insurance VehicleInsuranceCredential example#148applesnort wants to merge 1 commit into
applesnort wants to merge 1 commit into
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Utopia Vehicle Insurance Certificate credential — a generic example of a vehicle insurance record issued by a government motor vehicle agency.
VehicleInsuranceCredentialfrom the Vehicle Credentials VocabularyvehicleIdentificationNumber,manufacturer(Organization),owner(Person[] with PostalAddress),policyNumber,policyStartDate/policyEndDate,coverageAmount(MonetaryAmount),licensePlateIdentifierOpen questions for reviewers
credentialSubject.validFromfield, butv1rc2'sVehicleInsuranceInformationtype-scoped context doesn't actually definevalidFrom— VCDM v2 only scopes that term toVerifiableCredential, 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).image/renderMethodyet, 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 checkpasses (verified locally)