summaryrefslogtreecommitdiffstats
path: root/components/test
diff options
context:
space:
mode:
authorbinjin@chromium.org <binjin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-27 18:58:37 +0000
committerbinjin@chromium.org <binjin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-27 18:58:37 +0000
commit183ce73b72541370cbcd26dc9be9a6019f1f533c (patch)
tree9433abece2473dbe99440a9f87c4124f1f6c9a9d /components/test
parent34ce6290c7246b814a9b032f6c8a526e5f79ffb7 (diff)
downloadchromium_src-183ce73b72541370cbcd26dc9be9a6019f1f533c.zip
chromium_src-183ce73b72541370cbcd26dc9be9a6019f1f533c.tar.gz
chromium_src-183ce73b72541370cbcd26dc9be9a6019f1f533c.tar.bz2
Add regular expression support in json_schema component
Add support of "pattern" and "patternProperties" attribute into json_schema, with third_party/re2 as regular expression implementation. BUG=348551 Review URL: https://codereview.chromium.org/195193002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259943 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/test')
-rw-r--r--components/test/data/json_schema/pattern_properties_dot.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/test/data/json_schema/pattern_properties_dot.json b/components/test/data/json_schema/pattern_properties_dot.json
new file mode 100644
index 0000000..6a15f3e
--- /dev/null
+++ b/components/test/data/json_schema/pattern_properties_dot.json
@@ -0,0 +1,6 @@
+{
+ "type": "object",
+ "patternProperties": {
+ "^.$": { "type": "any" }
+ }
+}