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

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

Issue 276603003: Support converting referenced enum array into string. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win compile error Created 6 years, 7 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": "arrays", 3 "namespace": "arrays",
4 "description": "The arrays API.", 4 "description": "The arrays API.",
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "EnumArrayType", 7 "id": "EnumArrayType",
8 "type": "object", 8 "type": "object",
9 "properties": { 9 "properties": {
10 "types": { 10 "types": {
11 "type": "array", 11 "type": "array",
12 "items": { 12 "items": {
13 "type": "string", 13 "type": "string",
14 "enum": ["one", "two", "three"] 14 "enum": ["one", "two", "three"]
15 } 15 }
16 } 16 }
17 } 17 }
18 }, 18 },
19 { 19 {
20 "id": "Enumeration",
21 "type": "string",
22 "enum": ["one", "two", "three"]
23 },
24 {
25 "id": "EnumArrayReference",
26 "type": "object",
27 "properties": {
28 "types": {
29 "type": "array",
30 "items": {
31 "$ref": "Enumeration"
32 }
33 }
34 }
35 },
36 {
37 "id": "EnumArrayMixed",
38 "type": "object",
39 "properties": {
40 "inline_enums": {
41 "type": "array",
42 "items": {
43 "type": "string",
44 "enum": ["one", "two", "three"]
45 }
46 },
47 "infile_enums": {
48 "type": "array",
49 "items": {
50 "$ref": "Enumeration"
51 }
52 },
53 "external_enums": {
54 "type": "array",
55 "items": {
56 "$ref": "enums.Enumeration"
57 }
58 }
59 }
60 },
61 {
20 "id": "OptionalEnumArrayType", 62 "id": "OptionalEnumArrayType",
21 "type": "object", 63 "type": "object",
22 "properties": { 64 "properties": {
23 "types": { 65 "types": {
24 "type": "array", 66 "type": "array",
25 "items": { 67 "items": {
26 "type": "string", 68 "type": "string",
27 "enum": ["one", "two", "three"] 69 "enum": ["one", "two", "three"]
28 }, 70 },
29 "optional": true 71 "optional": true
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 "type": "array", 265 "type": "array",
224 "items": {"$ref": "Item"} 266 "items": {"$ref": "Item"}
225 } 267 }
226 ] 268 ]
227 } 269 }
228 ] 270 ]
229 } 271 }
230 ] 272 ]
231 } 273 }
232 ] 274 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/cc_generator.py ('k') | tools/json_schema_compiler/test/arrays_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698