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

Unified Diff: chrome/common/extensions/docs/server2/test_data/test_json/test_file.json

Issue 10577022: Extensions Docs Server: HandlebarDictGenerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes Created 8 years, 6 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/extensions/docs/server2/test_data/test_json/test_file.json
diff --git a/chrome/common/extensions/docs/server2/test_data/test_json/test_file.json b/chrome/common/extensions/docs/server2/test_data/test_json/test_file.json
new file mode 100644
index 0000000000000000000000000000000000000000..ea39b62a095710358405c6b36cf6c8871149251b
--- /dev/null
+++ b/chrome/common/extensions/docs/server2/test_data/test_json/test_file.json
@@ -0,0 +1,54 @@
+[
+ {
+ "namespace": "tester",
+ "types": [
+ {
+ "id": "TypeA",
+ "type": "object",
+ "description": "A cool thing.",
+ "properties": {
+ "a": {"nodoc": true, "type": "string", "minimum": 0},
+ "b": {"type": "array", "optional": true, "items": {"$ref": "TypeA"}, "description": "List of TypeA."}
+ }
+ }
+ ],
+ "functions": [
+ {
+ "name": "get",
+ "type": "function",
+ "description": "Gets stuff.",
+ "parameters": [
+ {
+ "name": "a",
+ "description": "a param",
+ "choices": [
+ {"type": "string"},
+ {"type": "array", "items": {"type": "string"}, "minItems": 1}
+ ]
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {"name": "results", "type": "array", "items": { "$ref": "TypeA"} }
+ ]
+ }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "EventA",
+ "type": "function",
+ "description": "A cool event.",
+ "parameters": [
+ {"type": "string", "name": "id"},
+ {
+ "$ref": "TypeA",
+ "name": "bookmark"
+ }
+ ]
+ }
+ ]
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698