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

Unified Diff: tools/json_schema_compiler/idl_schema.py

Issue 10217018: Alarm resolution changed to minutes and minimum delay added. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed type checks for optional string. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/idl_schema.py
diff --git a/tools/json_schema_compiler/idl_schema.py b/tools/json_schema_compiler/idl_schema.py
index 3a7e6e46ab39c0c6e421f6bf8b4d8e99cc64e73c..087b2f4c6d5e1c52f081ff1b8da940e2c41b2e8a 100644
--- a/tools/json_schema_compiler/idl_schema.py
+++ b/tools/json_schema_compiler/idl_schema.py
@@ -161,6 +161,8 @@ class Typeref(object):
properties['type'] = 'string'
elif self.typeref == 'boolean':
properties['type'] = 'boolean'
+ elif self.typeref == 'double':
+ properties['type'] = 'number'
elif self.typeref == 'long':
properties['type'] = 'integer'
elif self.typeref == 'any':

Powered by Google App Engine
This is Rietveld 408576698