In a two-factor authentication (2FA) the form ask a code formed by only 6 digits for exampe: 064964
I use the famous Ajv JSON Schema Validator
I can not build the validation scheme for this code:
export const code = {
'type': 'object',
'properties': {
code: {
'type': ['number'],
'minimum': 6,
'minLength': 6
},
},
'required': ['code'],
};
Can you help me?