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

Unified Diff: chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.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 | « chrome/common/extensions/docs/server2/api_data_source.py ('k') | tools/json_schema_compiler/any.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json
diff --git a/chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json b/chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json
index 2484a8ea3746c08678f57e1af8d8b3b8f54d4a70..9d643d6ca0a2d42306a97a979eb3eab55becd8c5 100644
--- a/chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json
+++ b/chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json
@@ -1,190 +1,175 @@
{
"functions": [
{
- "name": "get",
- "callback": {
- "simple_type": {
- "simple_type": "function"
- },
- "name": "callback",
- "parameters": [
- {
- "functions": [],
- "parameters": [],
- "returns": null,
- "last": true,
- "name": "results",
- "parent_name": "callback",
- "id": "property-callback-results",
- "array": {
- "functions": [],
- "parameters": [],
- "returns": null,
- "name": "resultsElement",
- "parent_name": "results",
- "id": "property-results-resultsElement",
- "link": {
- "text": "TypeA",
- "href": "tester.html#type-TypeA",
- "name": "TypeA"
- },
- "optional": false,
- "properties": [],
- "description": null
- },
- "optional": false,
- "properties": [],
- "description": null
- }
- ],
- "optional": false
- },
- "returns": null,
+ "name": "get",
"parameters": [
{
- "functions": [],
- "parameters": [],
- "returns": null,
- "name": "a",
- "parent_name": "get",
- "id": "property-get-a",
+ "parent_name": "get",
+ "functions": [],
"choices": [
{
- "functions": [],
- "parameters": [],
- "returns": null,
- "simple_type": "string",
- "name": "a",
- "parent_name": "a",
- "id": "property-a-a",
- "optional": true,
- "properties": [],
+ "properties": [],
+ "name": "string",
+ "simple_type": "string",
+ "functions": [],
+ "events": [],
+ "id": "type-a-string",
"description": null
- },
+ },
{
- "functions": [],
- "parameters": [],
- "returns": null,
- "last": true,
- "name": "a",
- "parent_name": "a",
- "id": "property-a-a",
+ "properties": [],
+ "last": true,
+ "name": "array",
+ "functions": [],
+ "events": [],
"array": {
- "functions": [],
- "parameters": [],
- "returns": null,
- "simple_type": "string",
- "name": "aElement",
- "parent_name": "a",
- "id": "property-a-aElement",
- "optional": false,
- "properties": [],
+ "properties": [],
+ "name": "arrayType",
+ "simple_type": "string",
+ "functions": [],
+ "events": [],
+ "id": "type-array-arrayType",
"description": null
- },
- "optional": true,
- "properties": [],
+ },
+ "id": "type-a-array",
"description": null
}
- ],
- "optional": false,
- "properties": [],
+ ],
+ "name": "a",
+ "parameters": [],
+ "id": "property-get-a",
+ "returns": null,
+ "optional": false,
+ "properties": [],
"description": "a param"
- },
+ },
{
- "last": true,
- "name": "callback",
- "description": null,
- "parent_name": "get",
- "id": "property-get-callback",
- "optional": false,
+ "parent_name": "get",
+ "last": true,
+ "name": "callback",
+ "simple_type": "function",
+ "optional": false,
+ "id": "property-get-callback",
+ "description": null
+ }
+ ],
+ "callback": {
+ "parameters": [
+ {
+ "description": null,
+ "array": {
+ "properties": [],
+ "name": "resultsType",
+ "functions": [],
+ "events": [],
+ "link": {
+ "text": "TypeA",
+ "href": "tester.html#type-TypeA",
+ "name": "TypeA"
+ },
+ "id": "type-results-resultsType",
+ "description": null
+ },
+ "optional": false,
+ "id": "property-callback-results",
+ "parent_name": "callback",
+ "functions": [],
+ "last": true,
+ "name": "results",
+ "parameters": [],
+ "properties": [],
+ "returns": null
+ }
+ ],
+ "optional": false,
+ "name": "callback",
+ "simple_type": {
"simple_type": "function"
}
- ],
- "id": "method-get",
+ },
+ "returns": null,
+ "id": "method-get",
"description": "Gets stuff."
}
- ],
- "properties": [],
- "name": "tester",
+ ],
+ "properties": [],
+ "name": "tester",
"types": [
{
"properties": [
{
- "functions": [],
- "parameters": [],
- "returns": null,
- "name": "b",
- "parent_name": "TypeA",
- "id": "property-TypeA-b",
+ "parent_name": "TypeA",
+ "functions": [],
+ "name": "b",
+ "parameters": [],
+ "id": "property-TypeA-b",
"array": {
- "functions": [],
- "parameters": [],
- "returns": null,
- "name": "bElement",
- "parent_name": "b",
- "id": "property-b-bElement",
+ "properties": [],
+ "name": "bType",
+ "functions": [],
+ "events": [],
"link": {
- "text": "TypeA",
- "href": "tester.html#type-TypeA",
+ "text": "TypeA",
+ "href": "tester.html#type-TypeA",
"name": "TypeA"
- },
- "optional": false,
- "properties": [],
+ },
+ "id": "type-b-bType",
"description": null
- },
- "optional": true,
- "properties": [],
+ },
+ "returns": null,
+ "optional": true,
+ "properties": [],
"description": "List of TypeA."
}
- ],
- "name": "TypeA",
- "simple_type": "object",
- "functions": [],
- "events": [],
- "id": "type-TypeA",
+ ],
+ "name": "TypeA",
+ "simple_type": "object",
+ "functions": [],
+ "events": [],
+ "id": "type-TypeA",
"description": "A cool thing."
}
- ],
+ ],
"events": [
{
- "callback": null,
- "name": "EventA",
+ "callback": null,
+ "name": "EventA",
"parameters": [
{
- "functions": [],
- "parameters": [],
- "returns": null,
- "simple_type": "string",
- "name": "id",
- "parent_name": "EventA",
- "id": "property-EventA-id",
- "optional": false,
- "properties": [],
+ "parent_name": "EventA",
+ "functions": [],
+ "simple_type": "string",
+ "name": "id",
+ "parameters": [],
+ "id": "property-EventA-id",
+ "returns": null,
+ "optional": false,
+ "properties": [],
"description": null
- },
+ },
{
- "functions": [],
- "parameters": [],
- "returns": null,
- "last": true,
- "name": "bookmark",
- "parent_name": "EventA",
- "id": "property-EventA-bookmark",
+ "description": null,
"link": {
- "text": "TypeA",
- "href": "tester.html#type-TypeA",
+ "text": "TypeA",
+ "href": "tester.html#type-TypeA",
"name": "TypeA"
- },
- "optional": false,
- "properties": [],
- "description": null
+ },
+ "optional": false,
+ "id": "property-EventA-bookmark",
+ "parent_name": "EventA",
+ "functions": [],
+ "last": true,
+ "name": "bookmark",
+ "parameters": [],
+ "properties": [],
+ "returns": null
}
- ],
- "supportsRules": false,
- "filters": [],
- "conditions": [],
- "id": "event-EventA",
- "actions": [],
+ ],
+ "supportsRules": false,
+ "filters": [],
+ "conditions": [],
+ "id": "event-EventA",
+ "actions": [],
"description": "A cool event."
}
]
« no previous file with comments | « chrome/common/extensions/docs/server2/api_data_source.py ('k') | tools/json_schema_compiler/any.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698