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

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

Issue 682493002: Remove the dependency on json schema compiler. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/enums.json
diff --git a/tools/json_schema_compiler/test/enums.json b/tools/json_schema_compiler/test/enums.json
deleted file mode 100644
index c776313627a08d29c31e84e0aa1e5ba80f7bb2d9..0000000000000000000000000000000000000000
--- a/tools/json_schema_compiler/test/enums.json
+++ /dev/null
@@ -1,265 +0,0 @@
-[
- {
- "namespace": "enums",
- "description": "The enums API.",
- "types": [
- {
- "id": "Enumeration",
- "type": "string",
- "enum": ["one", "two", "three"]
- },
- {
- "id": "EnumType",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["one", "two", "three"]
- }
- }
- },
- {
- "id": "HasEnumeration",
- "type": "object",
- "properties": {
- "enumeration": {
- "$ref": "Enumeration"
- },
- "optional_enumeration": {
- "$ref": "Enumeration",
- "optional": true
- }
- }
- },
- {
- "id": "InlineAndReferenceEnum",
- "type": "object",
- "properties": {
- "inline_enum": {
- "type": "string",
- "enum": ["test1", "test2", "test3"]
- },
- "reference_enum": {
- "$ref": "Enumeration"
- }
- }
- },
- {
- "id": "OptionalEnumType",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["one", "two", "three"],
- "optional": true
- }
- }
- }
- ],
- "functions": [
- {
- "name": "takesEnum",
- "type": "function",
- "description": "Takes an enum as its parameter.",
- "parameters": [
- {
- "name": "state",
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "takesEnumArray",
- "type": "function",
- "description": "Takes an enum array as its parameter.",
- "parameters": [
- {
- "name": "values",
- "type": "array",
- "items": {
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- }
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "takesEnumAsType",
- "type": "function",
- "description": "Takes an enum type as its parameter.",
- "parameters": [
- {
- "name": "enumeration",
- "$ref": "Enumeration"
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "takesEnumArrayAsType",
- "type": "function",
- "description": "Takes an enum type array as its parameter.",
- "parameters": [
- {
- "name": "values",
- "type": "array",
- "items": {
- "$ref": "Enumeration"
- }
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "returnsEnum",
- "type": "function",
- "description": "Returns an enum through the callback",
- "parameters": [
- {
- "name": "callback",
- "type": "function",
- "parameters": [
- {
- "name": "state",
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- }
- ]
- }
- ]
- },
- {
- "name": "returnsEnumAsType",
- "type": "function",
- "description": "Returns an enum through the callback",
- "parameters": [
- {
- "name": "callback",
- "type": "function",
- "parameters": [
- {
- "name": "enumeration",
- "$ref": "Enumeration"
- }
- ]
- }
- ]
- },
- {
- "name": "returnsTwoEnums",
- "type": "function",
- "description": "Returns two enums through the callback",
- "parameters": [
- {
- "name": "callback",
- "type": "function",
- "parameters": [
- {
- "name": "firstState",
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- },
- {
- "name": "secondState",
- "type": "string",
- "enum": ["spam", "ham", "eggs"]
- }
- ]
- }
- ]
- },
- {
- "name": "takesOptionalEnum",
- "type": "function",
- "description": "Takes an enum as its parameter.",
- "parameters": [
- {
- "name": "state",
- "type": "string",
- "enum": ["foo", "bar", "baz"],
- "optional": true
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "takesMultipleOptionalEnums",
- "type": "function",
- "description": "Takes two enums as parameters.",
- "parameters": [
- {
- "name": "state",
- "type": "string",
- "enum": ["foo", "bar", "baz"],
- "optional": true
- },
- {
- "name": "type",
- "type": "string",
- "enum": ["foo", "ding", "dong"],
- "optional": true
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- }
- ],
- "events": [
- {
- "name": "onEnumFired",
- "type": "function",
- "description": "Fired when an enum is ready.",
- "parameters": [
- {
- "name": "someEnum",
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- }
- ]
- },
- {
- "name": "onTwoEnumsFired",
- "type": "function",
- "description": "Fired when two enums are ready.",
- "parameters": [
- {
- "name": "firstEnum",
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- },
- {
- "name": "secondEnum",
- "type": "string",
- "enum": ["spam", "ham", "eggs"]
- }
- ]
- }
- ]
- }
-]
« no previous file with comments | « tools/json_schema_compiler/test/dependency_tester.json ('k') | tools/json_schema_compiler/test/enums_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698