My Json Schema :
{
"type" : "object" ,
"properties" : {
"status" : {
"type" : "string" ,
"pattern" : "(OPEN|CLOSE)/i"
} ,
"phone" : {
"type" : "string" ,
"pattern" : "[0-9a-zA-Z_\\s]+"
}
}
}
My Input :
{
"status" : "open" ,
"phone" : "9080245591"
}
I try to check the input using json schema.But json validator throw the following error. pattern value is wrong.So how to solve it.
and it throw String 'open' does not match regex pattern '(OPEN|CLOSE)/i'. this error also