Comments (6)
@yspreen we will check this (the service you are referring to is the demo of the Austrian implementation)
from eu-dcc-schema.
from eu-dcc-schema.
If you include any of then, they must not be empty. You can still emit them. Basically empty arrays are not allowed, but absent ones are.
from eu-dcc-schema.
I'm running with the first code from https://dgc.a-sit.at/ehn/testsuite
In the first field it says
{ "ver": "1.0.0", "nam": { "fn": "Musterfrau-G\u00f6\u00dfinger", "gn": "Gabriele", "fnt": "MUSTERFRAU<GOESSINGER", "gnt": "GABRIELE" }, "dob": "1998-02-26", "v": [ { "tg": "840539006", "vp": "1119305005", "mp": "EU\/1\/20\/1528", "ma": "ORG-100030215", "dn": 1, "sd": 2, "dt": "2021-02-18", "co": "AT", "is": "BMGSPK Austria", "ci": "ATOZQWGY3IOJUXGYTBOVWWC3TO" } ] }
But in the actual payload, the body is
"{\"-260\": {\"1\": {\"dob\": \"1998-02-26\", \"t\": [], \"r\": [], \"v\": [{\"vp\": \"1119305005\", \"sd\": 2, \"dt\": \"2021-02-18\", \"dn\": 1, \"co\": \"AT\", \"tg\": \"840539006\", \"mp\": \"EU/1/20/1528\", \"is\": \"BMGSPK Austria\", \"ci\": \"ATOZQWGY3IOJUXGYTBOVWWC3TO\", \"ma\": \"ORG-100030215\"}], \"nam\": {\"fnt\": \"MUSTERFRAU<GOESSINGER\", \"gnt\": \"GABRIELE\", \"fn\": \"Musterfrau-Gößinger\", \"gn\": \"Gabriele\"}, \"ver\": \"1.0.0\"}}, \"4\": 1651003677, \"6\": 1619467677, \"1\": \"AT\"}"
Including empty r and t arrays. This trips up my validation. Might be a symptom of a bigger problem... Maybe just remove the minItems constraint?
from eu-dcc-schema.
@yspreen Thanks for observing, I've fixed it on the published service, please try again.
We had to set https://joelittlejohn.github.io/jsonschema2pojo/site/1.1.1/generate-mojo.html#initializeCollections to true
to prevent empty arrays from being created in the data classes generated from the schema.
from eu-dcc-schema.
Resolved
from eu-dcc-schema.
Related Issues (20)
- 404 when downloading https://id.uvci.eu/DCC.ValueSets.schema.json HOT 5
- What to do if vaccines not included in value set? HOT 2
- Remove valuesets in DCC Schema repo
- test-manf.json is not up to date HOT 1
- Support of entries with unicode characters from the "Halfwidth and Fullwidth" Forms block HOT 2
- Expand the existing schema to include personal identity fields HOT 7
- JSON Schema here to help HOT 1
- Problem during Make HOT 1
- Make `nam/fn` a required field
- Missing descriptions of "tg" property in test and recovery groups HOT 1
- Improve description of "nam" field HOT 9
- Link does not exist HOT 4
- Please add Novavax - Medicinal Product and Producer HOT 1
- outdated/problem with a link HOT 5
- array of a single element? HOT 9
- Check relaxation of fn/fnt, gn/gnt HOT 7
- Automatically format the JSON files before commit HOT 5
- Add broadcasting of a new release to the docs HOT 1
- Align valuesets schema with valuesets HOT 4
- Move FAQ from Wiki to repository itself HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eu-dcc-schema.