Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Issue 195193002: Add regular expression support in json_schema component (Closed)

Created:
6 years, 9 months ago by binjin
Modified:
6 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259943

Patch Set 1 #

Total comments: 19

Patch Set 2 : minor fixes #

Patch Set 3 : two major changes #

Total comments: 11

Patch Set 4 : fixes #

Patch Set 5 : fix a mistake #

Total comments: 21

Patch Set 6 : fixes #

Total comments: 15

Patch Set 7 : fixes #

Total comments: 2

Patch Set 8 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -34 lines) Patch
M components/json_schema.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M components/json_schema/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/json_schema/json_schema_validator.h View 1 2 3 4 5 4 chunks +7 lines, -1 line 0 comments Download
M components/json_schema/json_schema_validator.cc View 1 2 3 4 5 6 7 7 chunks +87 lines, -12 lines 0 comments Download
M components/json_schema/json_schema_validator_unittest.cc View 1 2 3 4 5 6 2 chunks +14 lines, -3 lines 0 comments Download
M components/json_schema/json_schema_validator_unittest_base.h View 1 2 3 4 5 6 2 chunks +1 line, -8 lines 0 comments Download
M components/json_schema/json_schema_validator_unittest_base.cc View 1 2 3 4 5 6 7 chunks +51 lines, -10 lines 0 comments Download
A components/test/data/json_schema/pattern_properties_dot.json View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
binjin
Hello kalman, Could you have a look at this CL? Thanks -bjin
6 years, 9 months ago (2014-03-11 14:40:08 UTC) #1
not at google - send to devlin
Joao should have a look at this as well, I think he knows the code ...
6 years, 9 months ago (2014-03-11 14:53:39 UTC) #2
Joao da Silva
https://codereview.chromium.org/195193002/diff/1/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/195193002/diff/1/components/json_schema/json_schema_validator.cc#newcode219 components/json_schema/json_schema_validator.cc:219: for (base::DictionaryValue::Iterator it(*dictionary_value); On 2014/03/11 14:53:39, kalman wrote: > ...
6 years, 9 months ago (2014-03-11 16:20:12 UTC) #3
binjin
https://codereview.chromium.org/195193002/diff/1/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/195193002/diff/1/components/json_schema/json_schema_validator.cc#newcode193 components/json_schema/json_schema_validator.cc:193: if (!re2::RE2(string_value).ok()) { On 2014/03/11 14:53:39, kalman wrote: > ...
6 years, 9 months ago (2014-03-11 16:27:36 UTC) #4
binjin
https://codereview.chromium.org/195193002/diff/1/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/195193002/diff/1/components/json_schema/json_schema_validator.cc#newcode649 components/json_schema/json_schema_validator.cc:649: } On 2014/03/11 16:20:13, Joao da Silva wrote: > ...
6 years, 9 months ago (2014-03-11 17:20:03 UTC) #5
not at google - send to devlin
jumping to lunch, didn't get a chance to look at anything but the first comment ...
6 years, 9 months ago (2014-03-11 18:37:15 UTC) #6
not at google - send to devlin
that's all I have for now.
6 years, 9 months ago (2014-03-11 22:45:06 UTC) #7
binjin
Hello, I just uploaded another patchset, containing two changes. 1) Do not check correctness of ...
6 years, 9 months ago (2014-03-12 16:18:53 UTC) #8
Joao da Silva
The logic looks correct to me, just a couple more comments. https://codereview.chromium.org/195193002/diff/40001/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): ...
6 years, 9 months ago (2014-03-13 15:10:51 UTC) #9
binjin
Hello Joao, PTAL at these fixes. -bjin https://codereview.chromium.org/195193002/diff/40001/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/195193002/diff/40001/components/json_schema/json_schema_validator.cc#newcode198 components/json_schema/json_schema_validator.cc:198: *error = ...
6 years, 9 months ago (2014-03-20 15:14:29 UTC) #10
Joao da Silva
Small fixes left, then it's good from my side. https://codereview.chromium.org/195193002/diff/80001/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/195193002/diff/80001/components/json_schema/json_schema_validator.cc#newcode215 components/json_schema/json_schema_validator.cc:215: ...
6 years, 9 months ago (2014-03-21 10:15:15 UTC) #11
binjin
@Joao PTAL at the changes @kalman Could you take a look as well? -bjin https://codereview.chromium.org/195193002/diff/80001/components/json_schema/json_schema_validator.cc ...
6 years, 9 months ago (2014-03-21 14:57:42 UTC) #12
Joao da Silva
lgtm https://codereview.chromium.org/195193002/diff/80001/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/195193002/diff/80001/components/json_schema/json_schema_validator.cc#newcode325 components/json_schema/json_schema_validator.cc:325: "String must match the pattern: *."; sgtm https://codereview.chromium.org/195193002/diff/100001/components/json_schema/json_schema_validator_unittest_base.h ...
6 years, 9 months ago (2014-03-21 15:06:39 UTC) #13
not at google - send to devlin
https://codereview.chromium.org/195193002/diff/100001/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/195193002/diff/100001/components/json_schema/json_schema_validator.cc#newcode194 components/json_schema/json_schema_validator.cc:194: it.value().GetAsDictionary(&dictionary_value); if it.value() isn't a DictionaryValue then |dictionary_value| will ...
6 years, 9 months ago (2014-03-21 15:27:20 UTC) #14
binjin
Hello kalman, Please have a look at the changes. Thanks -bjin https://codereview.chromium.org/195193002/diff/100001/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): ...
6 years, 9 months ago (2014-03-24 14:35:09 UTC) #15
not at google - send to devlin
lgtm, thanks for persevering. https://codereview.chromium.org/195193002/diff/100001/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/195193002/diff/100001/components/json_schema/json_schema_validator.cc#newcode194 components/json_schema/json_schema_validator.cc:194: it.value().GetAsDictionary(&dictionary_value); On 2014/03/24 14:35:09, bjin ...
6 years, 9 months ago (2014-03-25 14:38:05 UTC) #16
binjin
@joi: Could you take a look at components/test/data/json_schema/pattern_properties_dot.json ? Thanks -bjin https://codereview.chromium.org/195193002/diff/120001/components/json_schema/json_schema_validator.cc File components/json_schema/json_schema_validator.cc (right): ...
6 years, 9 months ago (2014-03-27 12:21:00 UTC) #17
Jói
//components LGTM
6 years, 9 months ago (2014-03-27 12:40:27 UTC) #18
binjin
The CQ bit was checked by binjin@chromium.org
6 years, 9 months ago (2014-03-27 12:41:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/195193002/150001
6 years, 9 months ago (2014-03-27 12:41:21 UTC) #20
binjin
The CQ bit was unchecked by binjin@chromium.org
6 years, 9 months ago (2014-03-27 13:12:10 UTC) #21
binjin
@brettw, I'm not sure the reason, but the presubmit bot insists on OWNER review from ...
6 years, 9 months ago (2014-03-27 15:23:28 UTC) #22
brettw
lgtm
6 years, 9 months ago (2014-03-27 16:26:36 UTC) #23
binjin
The CQ bit was checked by binjin@chromium.org
6 years, 9 months ago (2014-03-27 16:27:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/195193002/150001
6 years, 9 months ago (2014-03-27 16:28:07 UTC) #25
commit-bot: I haz the power
6 years, 9 months ago (2014-03-27 18:58:39 UTC) #26
Message was sent while issue was closed.
Change committed as 259943

Powered by Google App Engine
This is Rietveld 408576698