xeipuuv / gojsonschema

An implementation of JSON Schema, draft v4 v6 & v7 - Go language
2.56k stars 358 forks source link

Format Checker isn't working #334

Open bubbajoe opened 3 years ago

bubbajoe commented 3 years ago
    gojsonschema.FormatCheckers.
        Add("regex", gojsonschema.RegexFormatChecker{})

Partial Schema

          "exclude_patterns": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "regex"
            }
          },

I am intentionally including bad regex's and getting valid each time. Am I doing something wrong?