Adds a currency_code format to Ajv.
npm i --save @socketkit/ajv-currency-codeimportAjvfrom'ajv'importcurrenyCodefrom'@socketkit/ajv-currency-code'constajv=newAjv()currencyCode(ajv)When defining your JSON schema, use the format keyword with ther value set to currency_code. For example
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"format": "currency_code"
}
}
}