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

Note non-anchoring of regexes in the regex section.

Open handrews opened this issue 3 years ago • 2 comments

Fixes #897

handrews avatar Sep 19 '22 02:09 handrews

It looks like the consensus in the linked issue was to mention it in the patternProperties keyword rather than as a general statement. It seems that if you're going to do something different, it should have some discussion.

I think having a general statement is a good idea. I don't care too much whether the keywords mention it or not, but I think they should do the same thing. Either mention anchoring or don't. Currently pattern does and patternProperties doesn't.

jdesrosiers avatar Sep 21 '22 20:09 jdesrosiers

There was support for both locations. I'll update patternProperties as well, but it should be in the general section (for anyone making extension keywords), and no one objected to that in the issue (in fact that is what the issue title was changed to say).

handrews avatar Sep 22 '22 03:09 handrews

Now it 's in both places.

handrews avatar Sep 24 '22 01:09 handrews