Open-Attestation / open-attestation

Meta framework for providing digital provenance and integrity to documents.
https://openattestation.com
Apache License 2.0
54 stars 18 forks source link

feat: publishing schema #76

Closed yehjxraymond closed 4 years ago

yehjxraymond commented 4 years ago

Goal

This PR aims to publish the schema at a fixed url. This allows us to set the JSON schema $id correctly instead of simply setting to a random string. Setting it to a random string will cause the schema to fail validation, resulting in many online validators rejecting the JSON schema.

Solution

Adds a new script to create a public folder and move the schema files in. This is meant to be used by netlify to publish the two schema.

The intended url is as followed:

On netlify the build command will be npm run publish:schema and folder will be public

john-dot-oa commented 4 years ago

:tada: This PR is included in version 3.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: