GithubHelp home page GithubHelp logo

Comments (6)

asitplus-pteufl avatar asitplus-pteufl commented on June 10, 2024 1

@yspreen we will check this (the service you are referring to is the demo of the Austrian implementation)

from eu-dcc-schema.

dirkx avatar dirkx commented on June 10, 2024

from eu-dcc-schema.

jschlyter avatar jschlyter commented on June 10, 2024

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.

yspreen avatar yspreen commented on June 10, 2024

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.

nodh avatar nodh commented on June 10, 2024

@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.

jschlyter avatar jschlyter commented on June 10, 2024

Resolved

from eu-dcc-schema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.