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

Issue 100113: Add a few extra error messages to help catch typos in schemas. (Closed)

Created:
11 years, 7 months ago by Erik does not do reviews
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add a few extra error messages to help catch typos in schemas. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14850

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M chrome/renderer/resources/json_schema.js View 3 chunks +11 lines, -2 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Erik does not do reviews
11 years, 7 months ago (2009-04-28 17:59:07 UTC) #1
Aaron Boodman
lgtm, whatever you decide on comment below. http://codereview.chromium.org/100113/diff/1/2 File chrome/renderer/resources/json_schema.js (right): http://codereview.chromium.org/100113/diff/1/2#newcode220 Line 220: this.addError(propPath, ...
11 years, 7 months ago (2009-04-28 20:21:31 UTC) #2
Erik does not do reviews
11 years, 7 months ago (2009-04-28 20:29:34 UTC) #3
http://codereview.chromium.org/100113/diff/1/2
File chrome/renderer/resources/json_schema.js (right):

http://codereview.chromium.org/100113/diff/1/2#newcode220
Line 220: this.addError(propPath, "invalidPropertyType");
On 2009/04/28 20:21:31, Aaron Boodman wrote:
> This branch will get entered when schema.properties[prop] is defined, but
> contains any falsy value like: false, 0, undefined, or null. Is that what you
> intended? I guess I'm not sure what this is trying to test.

No.  I'm looking for undefined.  The problem I'm testing for is when in the
schema you have something like this:
properties: {
  title: chromium.types.string
}

instead of

properties: {
  title: chromium.types.str
}

So I'll change to test specifically against undefined.

Powered by Google App Engine
This is Rietveld 408576698