s1seven / schema-tools

Tools to create, validate and render certificates using Material Identity JSON schemas
https://materialidentity.org/
Apache License 2.0
1 stars 1 forks source link

feat: allow inspection arrays as well as objects #157

Closed eamon0989 closed 2 years ago

eamon0989 commented 2 years ago

Description

This PR adds support for EN10168 v0.3.0. The main change is allowing createInspection to accept arrays of inspection objects as well as inspection objects. Added fixtures for v0.3.0. Added test for v0.3.0 PDF creation (commented out until the schema is released). Fixed a bug where PDFs wouldn't render when a SupplementaryInformation object was no present on some inspection properties (Issue 156) Fixes a bug where an empty row was added to the PDF when supplementary information was not provided (Issue 158).

Type of change

Checklist:

getlarge commented 2 years ago

@eamon0989 Just need to fix the tests for the PDF and HTML generators and good to merge.

As you might have noticed when running the tests in the CI runner, there is that warning :

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
...

Could you maybe run that command to update the supported browsers list and push the changed files ?

eamon0989 commented 2 years ago

@eamon0989 Just need to fix the tests for the PDF and HTML generators and good to merge.

As you might have noticed when running the tests in the CI runner, there is that warning :

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
...

Could you maybe run that command to update the supported browsers list and push the changed files ?

Will do 👍🏼

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

61.3% 61.3% Coverage
0.0% 0.0% Duplication