encoding/jsonschema: patternProperties
does not quote field names in regexp pattern
#3551
Labels
patternProperties
does not quote field names in regexp pattern
#3551
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
Yes (v0.10.0)
What did you do?
What did you expect to see?
A passing test. The
patternProperties
keyword applies only to properties that aren'texplicitly defined. The jsonschema logic tries to work around the lack of support
for
... T
in structs (c.f. the "Types for all elements versus remaining elements" sectionin #165) by including the other field names in a regexp, but it does not quote metacharacters
in their names, so the field name
cue
, which should come under the auspices ofpatternProperties
in this example, doesn't get checked at all.What did you see instead?
The text was updated successfully, but these errors were encountered: