Below are the jsonSchema fields I need to validate
"field1":
{
"type": "integer",
"javaType": "long",
"pattern": "^[0-9]{6}"
},
"field2": {
"type": "integer",
"javaType": "long",
"pattern": "^[0-9]{10}"
},
Field 1 should be 6 exactly digits and field 2 exactly 10 digits. But when I upload data less or greater than the given limit it still works. Not sure where the issue is