Open joelposti opened 1 month ago
Many thanks @joelposti for your feedback, we are still reviewing the schema and we´ll take your suggestions into account.
Commits have been pushed since I opened this issue. I edited the issue description to reflect the state of the schema in commit ab02df8.
What
Feedback on the schema from DVV (the Finnish Digital Agency). DVV will be a PhotoID issuer in the EWC pilot.
Why
The schema has some areas that could benefit from improvements.
Feedback
Below is a list of things we would like to see improved.
Fixed in commit 55f714d.required
Currently all attributes are listed in these arrays. We believerequired
arrays should have only those attributes listed that are specified as mandatory in the PhotoID.docx file.We think that the
_unicode
suffixes on some attributes are redundant. They also are not consistently applied. For exampleresident_address_unicode
has the suffix, butresident_street
does not although that is the most likely address component to have Unicode characters in it.portrait
This attribute should havecontentEncoding
to indicate how the binary data of the portrait should be encoded (https://json-schema.org/draft/2020-12/json-schema-validation#section-8.3).issue_date
This attribute feels redundant, because the SD-JWT has mandatoryiat
claim.issue_date
Name of this attribute is different in the PhotoID.docx file:issue_date
vs.issuance_date
.issue_date
Format of this attribute should be "date-time" instead of "date" because the PhotoID.docx file allows this attribute to be a datetime. Additionally,iat
claim is a datetime.expiry_date
This attribute feels redundant, because the SD-JWT could haveexp
claim.expiry_date
Format of this attribute should be "date-time" instead of "date" because the PhotoID.docx file allows this attribute to be a datetime. Additionally,exp
claim is a datetime.sex
Name of this attribute is different in the PhotoID.docx file:sex
vs.gender
.Fixed in commit 0b420ce.sex
Value of this attribute is different in the PhotoID.docx file. The PhotoID.docx file says that the value should be compatible with ISO/IEC 5218, meaning the value should be 0, 1, 2 or 9 (https://en.wikipedia.org/wiki/ISO/IEC_5218). The JSON schema, on the other hand, says that the value should be F, M or <. These are incompatible.name_at_birth
Is this a family name or a given name? The PhotoID.docx file hasfamily_name_birth
andgiven_name_birth
.birthplace
Name of this attribute is different in the PhotoID.docx file:birthplace
vs.birth_place
.administrative_number
Description of this attribute is quite different between the PhotoID.docx file and the JSON schema.resident_street
,resident_house_number
andresident_state
Why are these two attributes not in theiso23220
object? Other address components are there.Fixed in commit 55f714d.resident_state
This attribute is specified in the PhotoID.docx file but missing from the JSON schema.issuing_jurisdiction
This attribute is specified in the PhotoID.docx file but missing from the JSON schema.travel_document_number
This attribute is not in the PhotoID.docx file.