Hi,
When specifying a pattern using a regular expression, one can not use the case insensitive flag in the regex.
Reproducible example (using dplyr):
library(dplyr)
'
{
"type": "object",
"properties":{
"product_type": {
"type": ["string"],
"pattern": "^(?i)test$"
}
},
"required": [
"product_type"
],
}
' %>% jsonvalidate::json_validator(engine = "ajv") -> validator