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

Unified Diff: tools/json_schema_compiler/test/arrays.json

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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
« no previous file with comments | « tools/json_schema_compiler/test/any_unittest.cc ('k') | tools/json_schema_compiler/test/arrays_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/test/arrays.json
diff --git a/tools/json_schema_compiler/test/arrays.json b/tools/json_schema_compiler/test/arrays.json
index c5fbe9b0835f97edf1aa30be37d5ae92a0dc5d1c..a0edd548d0459cca10e8c61ed6737c0ddd5d08a7 100644
--- a/tools/json_schema_compiler/test/arrays.json
+++ b/tools/json_schema_compiler/test/arrays.json
@@ -116,7 +116,7 @@
"type": "array",
"items": {
"type": "object",
- "additionalProperties": {"type": "any"}
+ "additionalProperties": {"type": "integer"}
}
},
{
@@ -144,6 +144,53 @@
]
},
{
+ "name": "justChoices",
+ "type": "function",
+ "description": "Takes some Choices.",
+ "parameters": [
+ {
+ "name": "choices",
+ "choices": [
+ { "type": "integer" },
+ { "type": "boolean" },
+ { "type": "array",
+ "items": {"$ref": "Item"}
+ }
+ ]
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "choicesArray",
+ "type": "function",
+ "description": "Takes some Choices.",
+ "parameters": [
+ {
+ "name": "choices",
+ "type": "array",
+ "items": {
+ "choices": [
+ { "type": "integer" },
+ { "type": "boolean" },
+ { "type": "array",
+ "items": {"$ref": "Item"}
+ }
+ ]
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
"name": "returnIntegerArray",
"type": "function",
"description": "Returns some integers.",
« no previous file with comments | « tools/json_schema_compiler/test/any_unittest.cc ('k') | tools/json_schema_compiler/test/arrays_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698