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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/test/arrays.json
diff --git a/tools/json_schema_compiler/test/arrays.json b/tools/json_schema_compiler/test/arrays.json
index 690d5cbb91919b0501d5d7826f8ccee061af31e6..23314e92f872779fcdd08daa85f026156f10c214 100644
--- a/tools/json_schema_compiler/test/arrays.json
+++ b/tools/json_schema_compiler/test/arrays.json
@@ -17,6 +17,48 @@
}
},
{
+ "id": "Enumeration",
+ "type": "string",
+ "enum": ["one", "two", "three"]
+ },
+ {
+ "id": "EnumArrayReference",
+ "type": "object",
+ "properties": {
+ "types": {
+ "type": "array",
+ "items": {
+ "$ref": "Enumeration"
+ }
+ }
+ }
+ },
+ {
+ "id": "EnumArrayMixed",
+ "type": "object",
+ "properties": {
+ "inline_enums": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": ["one", "two", "three"]
+ }
+ },
+ "infile_enums": {
+ "type": "array",
+ "items": {
+ "$ref": "Enumeration"
+ }
+ },
+ "external_enums": {
+ "type": "array",
+ "items": {
+ "$ref": "enums.Enumeration"
+ }
+ }
+ }
+ },
+ {
"id": "OptionalEnumArrayType",
"type": "object",
"properties": {

Powered by Google App Engine
This is Rietveld 408576698