BG: EXPECTEDSCHEMAVALIDATION
See original GitHub issueAffected 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 '
Proposed Solution
Removing these NULL values should resolve the issue.
"r": null,
"t": null,
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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.