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

Side by Side Diff: tools/json_schema_compiler/test/crossref.json

Issue 1100333006: Make the JSON Schema compiler handle enums declared in other namespaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 5 years, 8 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
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "crossref", 3 "namespace": "crossref",
4 "description": "The crossref API.", 4 "description": "The crossref API.",
5 "dependencies": ["simple_api"], 5 "dependencies": ["simple_api"],
6 "types": [ 6 "types": [
7 { 7 {
8 "id": "CrossrefType", 8 "id": "CrossrefType",
9 "type": "object", 9 "type": "object",
10 "properties": { 10 "properties": {
11 "testType": { 11 "testType": {
12 "$ref": "simple_api.TestType", 12 "$ref": "simple_api.TestType"
13 },
14 "testEnumRequired": {
15 "$ref": "simple_api.TestEnum"
16 },
17 "testEnumOptional": {
18 "$ref": "simple_api.TestEnum",
19 "optional": true
20 },
21 "testEnumOptionalExtra": {
22 "$ref": "simple_api.TestEnum",
13 "optional": true 23 "optional": true
14 } 24 }
15 } 25 }
16 } 26 }
17 ], 27 ],
18 "functions": [ 28 "functions": [
19 { 29 {
20 "name": "testTypeOptionalParam", 30 "name": "testTypeOptionalParam",
21 "type": "function", 31 "type": "function",
22 "description": "Takes TestType as a param.", 32 "description": "Takes TestType as a param.",
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 { 77 {
68 "name": "callback", 78 "name": "callback",
69 "type": "function", 79 "type": "function",
70 "parameters": [] 80 "parameters": []
71 } 81 }
72 ] 82 ]
73 } 83 }
74 ] 84 ]
75 } 85 }
76 ] 86 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/h_generator.py ('k') | tools/json_schema_compiler/test/crossref_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698