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

Issue 14830007: Added a validator for JSON v3 schemas. (Closed)

Created:
7 years, 7 months ago by Joao da Silva
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Mattias Nissler (ping if slow)
Visibility:
Public.

Description

Added a validator for JSON v3 schemas. This function checks if the input string is a valid JSON v3 schema, with some additional restrictions (e.g. "pattern" is not supported). The DictionaryValue returned can be used to build a JSONSchemaValidator, if the check succeeds. BUG=108992 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201473

Patch Set 1 #

Patch Set 2 : . #

Total comments: 24

Patch Set 3 : rebased, addressed comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -0 lines) Patch
M chrome/common/json_schema/json_schema_constants.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/json_schema/json_schema_constants.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/json_schema/json_schema_validator.h View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/common/json_schema/json_schema_validator.cc View 1 2 3 chunks +229 lines, -0 lines 2 comments Download
M chrome/common/json_schema/json_schema_validator_unittest.cc View 1 2 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Joao da Silva
So here we go :-) This is the first of ~5 CLs to implement the ...
7 years, 7 months ago (2013-05-14 16:42:46 UTC) #1
not at google - send to devlin
Sadly, I am probably the json schema person over here. https://codereview.chromium.org/14830007/diff/1001/chrome/common/json_schema/json_schema_validator.cc File chrome/common/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/14830007/diff/1001/chrome/common/json_schema/json_schema_validator.cc#newcode74 ...
7 years, 7 months ago (2013-05-16 17:08:20 UTC) #2
Joao da Silva
@kalman: PTAL https://codereview.chromium.org/14830007/diff/1001/chrome/common/json_schema/json_schema_validator.cc File chrome/common/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/14830007/diff/1001/chrome/common/json_schema/json_schema_validator.cc#newcode74 chrome/common/json_schema/json_schema_validator.cc:74: continue; On 2013/05/16 17:08:20, kalman wrote: > ...
7 years, 7 months ago (2013-05-19 13:16:29 UTC) #3
not at google - send to devlin
lgtm https://codereview.chromium.org/14830007/diff/12001/chrome/common/json_schema/json_schema_validator.cc File chrome/common/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/14830007/diff/12001/chrome/common/json_schema/json_schema_validator.cc#newcode126 chrome/common/json_schema/json_schema_validator.cc:126: static_cast<int>(i)); can you use %u and avoid the ...
7 years, 7 months ago (2013-05-20 21:08:52 UTC) #4
Joao da Silva
https://codereview.chromium.org/14830007/diff/12001/chrome/common/json_schema/json_schema_validator.cc File chrome/common/json_schema/json_schema_validator.cc (right): https://codereview.chromium.org/14830007/diff/12001/chrome/common/json_schema/json_schema_validator.cc#newcode126 chrome/common/json_schema/json_schema_validator.cc:126: static_cast<int>(i)); On 2013/05/20 21:08:52, kalman wrote: > can you ...
7 years, 7 months ago (2013-05-21 15:58:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/14830007/12001
7 years, 7 months ago (2013-05-21 15:58:42 UTC) #6
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=151731
7 years, 7 months ago (2013-05-21 23:22:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/14830007/12001
7 years, 7 months ago (2013-05-22 06:42:06 UTC) #8
commit-bot: I haz the power
7 years, 7 months ago (2013-05-22 09:00:48 UTC) #9
Message was sent while issue was closed.
Change committed as 201473

Powered by Google App Engine
This is Rietveld 408576698