question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BG: EXPECTEDSCHEMAVALIDATION

See original GitHub issue

Affected Country: BG

@stamo , @SchulzeStTSI and @daniel-eder - FYI.

Issue Description

Payload does not comply with Schema.

Ref: BG/2DCode/raw/1.json BG/2DCode/raw/2.json

>           raise error
E           jsonschema.exceptions.ValidationError: None is not of type 'array'
E           
E           Failed validating 'type' in schema['properties']['v']:
E               {'description': 'Vaccination Group',
E                'items': {'description': 'Vaccination Entry',
E                          'properties': {'ci': {'description': 'Certificate '
E                                                               'Identifier, format as '

image

Proposed Solution

Removing these NULL values should resolve the issue.

    "r": null,
    "t": null,

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
bhavin-qryptalcommented, Jun 14, 2021
  • The sync should be manually. All issuers and verifiers use the schema which are currently offically released. But this is for issuing. Verifiers can have a different behaviour (or no validation). This is still under discussion.

Purpose if the validation script is to ensure that all the codes issues / submitted by member state complies with the standards. Actual validator app could have liberal implementation but the validation script should have stricter checks to ensure good compliance (e.g. schema compliance). Otherwise, we would miss capturing important compatibility issues upfront.

1reaction
SchulzeStTSIcommented, Jun 8, 2021

@bhavin-qryptal Sorry for the confusion. There is an exception currently for BG which should ignore nulls for arrays and a different format for DOB. Can you relax the schema f.e. like if(countryCode==“BG”) then the type of r is not array, but [“null”,“array”]. DOB should be as well allowed for T00:00:00. We wait for the final decision tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON Schema validation error rule - Forums - IBM Support
I am trying to validate JSON message using "Validate Document via JSON Schema URL" option available on validate action in MPGW service. And...
Read more >
Specifying a schema | BigQuery - Google Cloud
When you specify a table schema, you must supply each column's name and data type. You can also supply a column's description, mode,...
Read more >
Schema validation - Postman Quick Reference Guide
This section contains different examples of validating JSON responses using the Ajv schema validator. I do not recommend using the tv4 (Tiny Validator...
Read more >
How to do JSON schema validation while API testing in Telerik ...
I believe that it is not possible to validate the JSON schema within the API project, since it does not exist in the...
Read more >
A Vocabulary for Structural Validation of JSON - JSON Schema
JSON Schema validation asserts constraints on the structure of instance data. ... Save for agreement between parties, schema authors SHALL NOT expect a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found