json-schema-spec
json-schema-spec copied to clipboard
Regexes should mention in its main section that they're not implicitly anchored
The "patternProperties" section should mention that it's not implicitly anchored. "pattern" mentions that it's not.
It would be better to just cover this in the generic description of regular expressions. I don't like repeating these things in various keywords as we keep missing keywords.
Should I file another issue requesting that the concept of regexes being anchored be consolidated?
You can just retitle this one
I've seen people trip over this more than a few times.
Since it's feasible that we could be using the regular expressions differently in "pattern" vs. "patternProperties" (even though we don't), I don't see a problem with being a little bit redundant.
OK, I suppose since it's only two places that's fine.