json-schema-spec icon indicating copy to clipboard operation
json-schema-spec copied to clipboard

Regexes should mention in its main section that they're not implicitly anchored

Open ssilverman opened this issue 5 years ago • 6 comments

The "patternProperties" section should mention that it's not implicitly anchored. "pattern" mentions that it's not.

ssilverman avatar Apr 23 '20 04:04 ssilverman

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.

handrews avatar Apr 25 '20 21:04 handrews

Should I file another issue requesting that the concept of regexes being anchored be consolidated?

ssilverman avatar Apr 25 '20 22:04 ssilverman

You can just retitle this one

handrews avatar Apr 25 '20 23:04 handrews

I've seen people trip over this more than a few times.

Relequestual avatar May 01 '20 08:05 Relequestual

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.

awwright avatar May 01 '20 08:05 awwright

OK, I suppose since it's only two places that's fine.

handrews avatar May 01 '20 16:05 handrews