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

Unified Diff: chrome/common/json_schema/json_schema_constants.cc

Issue 14830007: Added a validator for JSON v3 schemas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, addressed comments Created 7 years, 7 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: chrome/common/json_schema/json_schema_constants.cc
diff --git a/chrome/common/json_schema/json_schema_constants.cc b/chrome/common/json_schema/json_schema_constants.cc
index cfdca280985684863c1bf180bcaae460a4301d8c..bd341a9062d19dab7cd921af102c7a567fc81fa6 100644
--- a/chrome/common/json_schema/json_schema_constants.cc
+++ b/chrome/common/json_schema/json_schema_constants.cc
@@ -11,6 +11,7 @@ const char kAny[] = "any";
const char kArray[] = "array";
const char kBoolean[] = "boolean";
const char kChoices[] = "choices";
+const char kDescription[] = "description";
const char kEnum[] = "enum";
const char kId[] = "id";
const char kInteger[] = "integer";
@@ -26,9 +27,12 @@ const char kNumber[] = "number";
const char kObject[] = "object";
const char kOptional[] = "optional";
const char kPattern[] = "pattern";
+const char kPatternProperties[] = "patternProperties";
const char kProperties[] = "properties";
const char kRef[] = "$ref";
+const char kSchema[] = "$schema";
const char kString[] = "string";
+const char kTitle[] = "title";
const char kType[] = "type";
} // namespace json_schema_constants

Powered by Google App Engine
This is Rietveld 408576698