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

Unified Diff: tools/json_schema_compiler/test/arrays.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
« no previous file with comments | « tools/json_schema_compiler/test/any_unittest.cc ('k') | tools/json_schema_compiler/test/arrays_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 23314e92f872779fcdd08daa85f026156f10c214..0000000000000000000000000000000000000000
--- a/tools/json_schema_compiler/test/arrays.json
+++ /dev/null
@@ -1,274 +0,0 @@
-[
- {
- "namespace": "arrays",
- "description": "The arrays API.",
- "types": [
- {
- "id": "EnumArrayType",
- "type": "object",
- "properties": {
- "types": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": ["one", "two", "three"]
- }
- }
- }
- },
- {
- "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": {
- "types": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": ["one", "two", "three"]
- },
- "optional": true
- }
- }
- },
- {
- "id": "BasicArrayType",
- "type": "object",
- "properties": {
- "strings": {
- "type": "array",
- "items": {"type": "string"}
- },
- "booleans": {
- "type": "array",
- "items": {"type": "boolean"}
- },
- "numbers": {
- "type": "array",
- "items": {"type": "number"}
- },
- "integers": {
- "type": "array",
- "items": {"type": "integer"}
- }
- }
- },
- {
- "id": "Item",
- "type": "object",
- "properties": {
- "val": {
- "type": "integer"
- }
- }
- },
- {
- "id": "RefArrayType",
- "type": "object",
- "properties": {
- "refs": {
- "type": "array",
- "items": { "$ref": "Item" }
- }
- }
- }
- ],
- "functions": [
- {
- "name": "integerArray",
- "type": "function",
- "description": "Takes some integers.",
- "parameters": [
- {
- "name": "nums",
- "type": "array",
- "items": {"type": "integer"}
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "anyArray",
- "type": "function",
- "description": "Takes some Items.",
- "parameters": [
- {
- "name": "anys",
- "type": "array",
- "items": {"type": "any"}
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "objectArray",
- "type": "function",
- "description": "Takes some Items.",
- "parameters": [
- {
- "name": "objects",
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": {"type": "integer"}
- }
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "refArray",
- "type": "function",
- "description": "Takes some Items.",
- "parameters": [
- {
- "name": "refs",
- "type": "array",
- "items": {"$ref": "Item"}
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "justChoices",
- "type": "function",
- "description": "Takes some Choices.",
- "parameters": [
- {
- "name": "choices",
- "choices": [
- { "type": "integer" },
- { "type": "boolean" },
- { "type": "array",
- "items": {"$ref": "Item"}
- }
- ]
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "choicesArray",
- "type": "function",
- "description": "Takes some Choices.",
- "parameters": [
- {
- "name": "choices",
- "type": "array",
- "items": {
- "choices": [
- { "type": "integer" },
- { "type": "boolean" },
- { "type": "array",
- "items": {"$ref": "Item"}
- }
- ]
- }
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "returnIntegerArray",
- "type": "function",
- "description": "Returns some integers.",
- "parameters": [
- {
- "name": "callback",
- "type": "function",
- "parameters": [
- {
- "name": "integers",
- "type": "array",
- "items": {"type": "integer"}
- }
- ]
- }
- ]
- },
- {
- "name": "returnRefArray",
- "type": "function",
- "description": "Returns some Items.",
- "parameters": [
- {
- "name": "callback",
- "type": "function",
- "parameters": [
- {
- "name": "refs",
- "type": "array",
- "items": {"$ref": "Item"}
- }
- ]
- }
- ]
- }
- ]
- }
-]
« no previous file with comments | « tools/json_schema_compiler/test/any_unittest.cc ('k') | tools/json_schema_compiler/test/arrays_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698