Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RO: EXPECTEDSCHEMAVALIDATION #356

Open
bhavin-qryptal opened this issue Jun 28, 2021 · 0 comments
Open

RO: EXPECTEDSCHEMAVALIDATION #356

bhavin-qryptal opened this issue Jun 28, 2021 · 0 comments

Comments

@bhavin-qryptal
Copy link
Collaborator

Affected Country: RO

Issue Description

Ref: [RO/2DCode/raw/2.json]

E           
E           Failed validating 'maxItems' in schema['properties']['v']:
E               {'description': 'Vaccination Group',
E                'items': {'description': 'Vaccination Entry',
E                          'properties': {'ci': {'description': 'Certificate '
E                                                               'Identifier, format as '
E                                                               'per UVCI: Annex 2 in  '
E                                                               'https://ec.europa.eu/health/sites/health/files/ehealth/docs/vaccination-proof_interoperability-guidelines_en.pdf',
E                                                'maxLength': 80,
E                                                'type': 'string'},
E                                         'co': {'description': 'Country of '
E                                                               'Vaccination / Test, '
E                                                               'ISO 3166 alpha-2 '
E                                                               'where possible',
E                                                'pattern': '[A-Z]{1,10}',
E                                                'type': 'string',
E                                                'valueset-uri': 'valuesets/country-2-codes.json'},
E                                         'dn': {'description': 'Dose Number / Total '
E                                                               'doses in Series: '
E                                                               'positive integer',
E                                                'minimum': 1,
E                                                'type': 'integer'},
E                                         'dt': {'description': 'ISO8601 complete '
E                                                               'date: Date of '
E                                                               'Vaccination',
E                                                'format': 'date',
E                                                'type': 'string'},
E                                         'is': {'description': 'Certificate Issuer',
E                                                'maxLength': 80,
E                                                'type': 'string'},
E                                         'ma': {'description': 'EU eHealthNetwork: '
E                                                               'Value Sets for '
E                                                               'Digital Covid '
E                                                               'Certificates. version '
E                                                               '1.0, 2021-04-16, '
E                                                               'section 2.4',
E                                                'type': 'string',
E                                                'valueset-uri': 'valuesets/vaccine-mah-manf.json'},
E                                         'mp': {'description': 'EU eHealthNetwork: '
E                                                               'Value Sets for '
E                                                               'Digital Covid '
E                                                               'Certificates. version '
E                                                               '1.0, 2021-04-16, '
E                                                               'section 2.3',
E                                                'type': 'string',
E                                                'valueset-uri': 'valuesets/vaccine-medicinal-product.json'},
E                                         'sd': {'description': 'Dose Number / Total '
E                                                               'doses in Series: '
E                                                               'positive integer',
E                                                'minimum': 1,
E                                                'type': 'integer'},
E                                         'tg': {'description': 'EU eHealthNetwork: '
E                                                               'Value Sets for '
E                                                               'Digital Covid '
E                                                               'Certificates. version '
E                                                               '1.0, 2021-04-16, '
E                                                               'section 2.1',
E                                                'type': 'string',
E                                                'valueset-uri': 'valuesets/disease-agent-targeted.json'},
E                                         'vp': {'description': 'EU eHealthNetwork: '
E                                                               'Value Sets for '
E                                                               'Digital Covid '
E                                                               'Certificates. version '
E                                                               '1.0, 2021-04-16, '
E                                                               'section 2.2',
E                                                'type': 'string',
E                                                'valueset-uri': 'valuesets/vaccine-prophylaxis.json'}},
E                          'required': ['tg',
E                                       'vp',
E                                       'mp',
E                                       'ma',
E                                       'dn',
E                                       'sd',
E                                       'dt',
E                                       'co',
E                                       'is',
E                                       'ci'],
E                          'type': 'object'},
E                'maxItems': 1,
E                'minItems': 1,
E                'type': 'array'}
E           
E           On instance['v']:
E               [{'ci': 'URN:UVCI:01:RO:Q6M0U00Y5S#I',
E                 'co': 'RO',
E                 'dn': 1,
E                 'dt': '2021-01-18',
E                 'is': 'Ministry of Health',
E                 'ma': 'ORG-100030215',
E                 'mp': 'EU/1/20/1528',
E                 'sd': 2,
E                 'tg': '840539006',
E                 'vp': 'J07BX03'},
E                {'ci': 'URN:UVCI:01:RO:S7MVLVV8YQ#B',
E                 'co': 'RO',
E                 'dn': 2,
E                 'dt': '2021-02-08',
E                 'is': 'Ministry of Health',
E                 'ma': 'ORG-100030215',
E                 'mp': 'EU/1/20/1528',
E                 'sd': 2,
E                 'tg': '840539006',
E                 'vp': 'J07BX03'}]

Proposed Solution

Only one entry should exists under claim "v" .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant