rust-italia / dgc

A parser and validator for the EU Digital Green Certificate (dgc) a.k.a. greenpass

Home Page:https://github.com/rust-italia/dgc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

lmammino opened this issue · comments

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>