Skip to content

Regex flag when specifying a pattern #36

@eric-bonucci

Description

@eric-bonucci

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions