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

Side by Side Diff: tools/json_schema_compiler/test/simple_api.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
« no previous file with comments | « tools/json_schema_compiler/test/crossref_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "simple_api", 3 "namespace": "simple_api",
4 "description": "This is a simple API.", 4 "description": "This is a simple API.",
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "TestType", 7 "id": "TestType",
8 "type": "object", 8 "type": "object",
9 "properties": { 9 "properties": {
10 "string": { 10 "string": {
11 "type": "string", 11 "type": "string",
12 "description": "Some string." 12 "description": "Some string."
13 }, 13 },
14 "boolean": { 14 "boolean": {
15 "type": "boolean", 15 "type": "boolean",
16 "description": "Some boolean." 16 "description": "Some boolean."
17 }, 17 },
18 "number": { 18 "number": {
19 "type": "number", 19 "type": "number",
20 "description": "Some double." 20 "description": "Some double."
21 }, 21 },
22 "integer": { 22 "integer": {
23 "type": "integer", 23 "type": "integer",
24 "description": "Some integer." 24 "description": "Some integer."
25 } 25 }
26 } 26 }
27 },
28 {
29 "id": "TestEnum",
30 "type": "string",
31 "enum": ["one", "two", "three"]
27 } 32 }
28 ], 33 ],
29 "functions": [ 34 "functions": [
30 { 35 {
31 "name": "incrementInteger", 36 "name": "incrementInteger",
32 "type": "function", 37 "type": "function",
33 "description": "Increments the given integer.", 38 "description": "Increments the given integer.",
34 "parameters": [ 39 "parameters": [
35 { 40 {
36 "name": "num", 41 "name": "num",
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 "parameters": [ 159 "parameters": [
155 { 160 {
156 "name": "someTestType", 161 "name": "someTestType",
157 "$ref": "TestType" 162 "$ref": "TestType"
158 } 163 }
159 ] 164 ]
160 } 165 }
161 ] 166 ]
162 } 167 }
163 ] 168 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/crossref_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698