rust-italia / dgc

A parser and validator for the EU Digital Green Certificate (dgc) a.k.a. greenpass
https://github.com/rust-italia/dgc
MIT License
26 stars 11 forks source link

`fn` in `DgcCertName` should be an `Option<String>` #26

Closed lmammino closed 2 years ago

lmammino commented 2 years ago

Based on https://github.com/ehn-dcc-development/ehn-dcc-schema/blob/release/1.3.0/DCC.Core.Types.schema.json#L17-L63 it looks like that only the field fnt is mandatory in the DgcCertName struct. We are currently assuming fn is mandatory too which leads to failing tests.

We should change DgcCertName fn to be an Option<String>