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

Unified Diff: tools/json_schema_compiler/test/callbacks.json

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/callbacks.json
diff --git a/tools/json_schema_compiler/test/callbacks.json b/tools/json_schema_compiler/test/callbacks.json
index 2f86c26e15e07c36ee913b0798d6c59cab33f172..dbd03c30aa55d6a99b7d2cdd823cdab7b16d1c1c 100644
--- a/tools/json_schema_compiler/test/callbacks.json
+++ b/tools/json_schema_compiler/test/callbacks.json
@@ -2,7 +2,13 @@
{
"namespace": "callbacks",
"description": "The callbacks API.",
- "types": [],
+ "types": [
+ {
+ "id": "Enumeration",
+ "type": "string",
+ "enum": ["foo", "bar", "baz"]
+ }
+ ],
"functions": [
{
"name": "returnsNothing",
@@ -30,8 +36,7 @@
"type": "object",
"properties": {
"state": {
- "type": "string",
- "enum": ["foo", "bar", "baz"]
+ "$ref": "Enumeration"
}
}
}
@@ -57,8 +62,7 @@
"type": "object",
"properties": {
"state": {
- "type": "string",
- "enum": ["foo", "bar", "baz"]
+ "$ref": "Enumeration"
}
}
}

Powered by Google App Engine
This is Rietveld 408576698