@fabrica.city/fabrica-utils
v1.0.32
Published
Fabrica utils
Downloads
34
Keywords
Readme
Install
$ npm install @fabrica.city/fabrica-utils
Usage
schemas
const {erc721metadataSchema} = require("@fabrica.city/fabrica-utils")
const testMetadataObj = {
.....
}
const validate = async(data) => {
try {
await erc721metadataSchema.validate(testMetadataObj, {});
} catch(e) {
throw new Error(e)
}
}
validate(testMetadataObj)