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

Side by Side Diff: chrome/common/json_schema/json_schema_constants.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_JSON_SCHEMA_JSON_SCHEMA_CONSTANTS_H_ 5 #ifndef CHROME_COMMON_JSON_SCHEMA_JSON_SCHEMA_CONSTANTS_H_
6 #define CHROME_COMMON_JSON_SCHEMA_JSON_SCHEMA_CONSTANTS_H_ 6 #define CHROME_COMMON_JSON_SCHEMA_JSON_SCHEMA_CONSTANTS_H_
7 7
8 // These constants are shared by code that uses JSON schemas. 8 // These constants are shared by code that uses JSON schemas.
9 namespace json_schema_constants { 9 namespace json_schema_constants {
10 10
11 extern const char kAdditionalProperties[]; 11 extern const char kAdditionalProperties[];
12 extern const char kAny[]; 12 extern const char kAny[];
13 extern const char kArray[]; 13 extern const char kArray[];
14 extern const char kBoolean[]; 14 extern const char kBoolean[];
15 extern const char kChoices[]; 15 extern const char kChoices[];
16 extern const char kDescription[];
16 extern const char kEnum[]; 17 extern const char kEnum[];
17 extern const char kId[]; 18 extern const char kId[];
18 extern const char kInteger[]; 19 extern const char kInteger[];
19 extern const char kItems[]; 20 extern const char kItems[];
20 extern const char kMaximum[]; 21 extern const char kMaximum[];
21 extern const char kMaxItems[]; 22 extern const char kMaxItems[];
22 extern const char kMaxLength[]; 23 extern const char kMaxLength[];
23 extern const char kMinimum[]; 24 extern const char kMinimum[];
24 extern const char kMinItems[]; 25 extern const char kMinItems[];
25 extern const char kMinLength[]; 26 extern const char kMinLength[];
26 extern const char kNull[]; 27 extern const char kNull[];
27 extern const char kNumber[]; 28 extern const char kNumber[];
28 extern const char kObject[]; 29 extern const char kObject[];
29 extern const char kOptional[]; 30 extern const char kOptional[];
30 extern const char kPattern[]; 31 extern const char kPattern[];
32 extern const char kPatternProperties[];
31 extern const char kProperties[]; 33 extern const char kProperties[];
32 extern const char kRef[]; 34 extern const char kRef[];
35 extern const char kSchema[];
33 extern const char kString[]; 36 extern const char kString[];
37 extern const char kTitle[];
34 extern const char kType[]; 38 extern const char kType[];
35 39
36 } // namespace json_schema_constants 40 } // namespace json_schema_constants
37 41
38 #endif // CHROME_COMMON_JSON_SCHEMA_JSON_SCHEMA_CONSTANTS_H_ 42 #endif // CHROME_COMMON_JSON_SCHEMA_JSON_SCHEMA_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/json_schema/json_schema_constants.cc » ('j') | chrome/common/json_schema/json_schema_validator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698