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.
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 bepublic