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

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

Open lmammino opened 3 years ago

lmammino commented 3 years ago

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!