Skip to content

Commit

Permalink
chore: finalise oa v4 context url (#91)
Browse files Browse the repository at this point in the history
- temporarily maintain old url for backwards compatibility
  • Loading branch information
HJunyuan authored Jul 18, 2024
1 parent 999cff3 commit 1199bf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scripts/publish-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ mkdir -p ./public/com/openattestation/1.0
cp ./public/com/openattestation/3.0/CustomContext.json ./public/com/openattestation/1.0/CustomContext.json
cp ./public/com/openattestation/3.0/DrivingLicenceCredential.json ./public/com/openattestation/1.0/DrivingLicenceCredential.json
cp ./public/com/openattestation/3.0/OpenAttestation.v3.json ./public/com/openattestation/1.0/OpenAttestation.v3.json

# [Temporarily maintain backwards compatibility] Ensure 4.0 alpha context file is still available
cp ./public/com/openattestation/4.0/context.json ./public/com/openattestation/4.0/alpha-context.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"@version": 1.1,
"@protected": true,
"schema": "https://schema.org/",
"oacred": "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json#",
"oacred": "https://schemata.openattestation.com/com/openattestation/4.0/context.json#",
"OpenAttestationCredential": {
"@id": "oacred:OpenAttestationCredential",
"@context": { "name": "schema:name" }
Expand Down

0 comments on commit 1199bf1

Please sign in to comment.