ehn-dcc-development / hcert-kotlin

Kotlin multiplatform implementation of the HCERT/DCC specification
Apache License 2.0
25 stars 25 forks source link

Null values instead of missing field JSON validation #44

Closed Alival-IT closed 3 years ago

Alival-IT commented 3 years ago

@JesusMcCloud @nodh

Hello there,

I wanted to ask if you also tested JSON schema validation if the values are null

for example

{ "t": [ { "ci": "urn:uvci:01:lv:e047f5373a6ea7794a7edd34eb204a12", "co": "LV", "dr": "2021-05-31T19:11:40Z", "is": "Nacionālais veselības dienests", "ma": null, "nm": null, "sc": "2021-05-31T15:44:52Z", "tc": "CENTRĀLĀ LABORATORIJA, SIA", "tg": "840539006", "tr": "260415000", "tt": "LP6464-4" } ], "dob": "1966-10-25", "nam": { "fn": "Darbiņš", "gn": "Aldis", "fnt": "DARBINS", "gnt": "ALDIS" }, "ver": "1.0.0" }

is failing

https://github.com/eu-digital-green-certificates/dcc-quality-assurance/blob/main/LV/1.0.0/specialcases/TEST_NULL_values_in_nm_ma.png