Adds a currency_code format to Ajv.
npm i --save @socketkit/ajv-currency-codeimport Ajv from 'ajv'
import currenyCode from '@socketkit/ajv-currency-code'
const ajv = new Ajv()
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"
}
}
}