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

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

Issue 9456007: Add wider support to json_schema_compiler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reupload Created 8 years, 10 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/test/crossref.json
diff --git a/tools/json_schema_compiler/test/crossref.json b/tools/json_schema_compiler/test/crossref.json
index 8a74059476d4256866cc1a7976d70ed6e1815be3..02e5c94ab706e358ee4fd053faf7e5d53681e5d8 100644
--- a/tools/json_schema_compiler/test/crossref.json
+++ b/tools/json_schema_compiler/test/crossref.json
@@ -2,10 +2,21 @@
{
"namespace": "crossref",
"dependencies": ["simple_api"],
- "types": [],
+ "types": [
+ {
+ "id": "CrossrefType",
+ "type": "object",
+ "properties": {
+ "testType": {
+ "$ref": "TestType",
+ "optional": true
+ }
+ }
+ }
+ ],
"functions": [
{
- "name": "TestTypeOptionalParam",
+ "name": "testTypeOptionalParam",
"type": "function",
"description": "Takes TestType as a param.",
"parameters": [
@@ -38,6 +49,26 @@
]
}
]
+ },
+ {
+ "name": "testTypeInObject",
+ "type": "function",
+ "description": "Takes an optional object with a TestType and a bool.",
+ "parameters": [
+ {
+ "name": "paramObject",
+ "type": "object",
+ "properties": {
+ "testType": {"$ref": "TestType", "optional": true},
+ "boolean": {"type": "boolean"}
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
}
]
}
« no previous file with comments | « tools/json_schema_compiler/test/choices_unittest.cc ('k') | tools/json_schema_compiler/test/crossref_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698