Skip to content

Commit

Permalink
Merge pull request #53 from Concordium/fix-date
Browse files Browse the repository at this point in the history
Change date-time attribute type in the schema
  • Loading branch information
annenkov authored Aug 28, 2023
2 parents 2694520 + 589ecd8 commit 7db07bc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,21 @@
},
"graduationDate": {
"title": "Graduation date",
"type": "string",
"format": "date-time",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "date-time"
},
"timestamp": {
"type": "string",
"format": "date-time"
}
},
"required": [
"type",
"timestamp"
],
"description": "Graduation date"
}
},
Expand All @@ -51,4 +64,4 @@
"required": [
"credentialSubject"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"attributes": {
"degreeType": "BachelorDegree",
"degreeName": "Bachelor of Science and Arts",
"graduationDate": "2010-06-01T00:00:00Z"
"graduationDate": {
"timestamp": "2010-06-01T00:00:00Z",
"type": "date-time"
}
}
},
"credentialSchema": {
Expand All @@ -32,4 +35,4 @@
"proofPurpose": "assertionMethod",
"proofValue": "facdb03a1d054a55808875864abc85cc41d2c32290929bbb361a710b0fda5e7f333ac33abdb1b5f0ebb5662335c34410b8e96ca6730df7eb100f814f223d0b07"
}
}
}

0 comments on commit 7db07bc

Please sign in to comment.