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

Add support for rulesets (business rules) for additional validation of certificates

lmammino opened this issue · comments

Every country publishes country-specific rulesets (also called business rules) that are used to determine if a certificate is valid on a given country based on national rules.

E.g. It's likely that in Italy "negative test certificates" won't be considered valid for most activities.

These rulesets are somewhat documented here: https://github.com/ehn-dcc-development/dgc-business-rules

For Italy you can find the current ruleset at the following URL: https://get.dgc.gov.it/v1/dgc/settings

Interesting enough there is even a black list encode as a rule!