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

Unified Diff: tools/json_schema_compiler/test/error_generation.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/error_generation.json
diff --git a/tools/json_schema_compiler/test/error_generation.json b/tools/json_schema_compiler/test/error_generation.json
deleted file mode 100644
index f90ef6ee97d12c45abcdac36b8348557cc7210f8..0000000000000000000000000000000000000000
--- a/tools/json_schema_compiler/test/error_generation.json
+++ /dev/null
@@ -1,152 +0,0 @@
-[
- {
- "namespace": "error_generation",
- "description": "Generates ALL the errors.",
- "compiler_options": {
- "generate_error_messages": true
- },
- "types": [
- {
- "id": "TestType",
- "type": "object",
- "properties": {
- "string": {
- "type": "string",
- "description": "Some string."
- }
- }
- },
- {
- "id": "OptionalTestType",
- "type": "object",
- "properties": {
- "string": {
- "type": "string",
- "description": "Some string.",
- "optional": true
- }
- }
- },
- {
- "id": "ChoiceType",
- "type": "object",
- "properties": {
- "integers": {
- "choices": [
- {"type": "array", "items": {"type": "integer", "minimum": 0}},
- {"type": "integer"}
- ]
- }
- }
- },
- {
- "id": "OptionalChoiceType",
- "type": "object",
- "properties": {
- "integers": {
- "choices": [
- {"type": "array", "items": {"type": "integer", "minimum": 0}},
- {"type": "integer"}
- ],
- "optional": true
- }
- }
- },
- {
- "id": "ObjectType",
- "type": "object",
- "properties": {
- "otherType": {
- "$ref": "error_generation.TestType",
- "optional": true
- }
- }
- },
- {
- "id": "Enumeration",
- "type": "string",
- "enum": ["one", "two", "three"]
- },
- {
- "id": "HasEnumeration",
- "type": "object",
- "properties": {
- "enumeration": {
- "$ref": "Enumeration"
- }
- }
- },
- {
- "id": "BinaryData",
- "type": "object",
- "properties": {
- "data": {
- "type" : "binary"
- }
- }
- },
- {
- "id": "OptionalBinaryData",
- "type": "object",
- "properties": {
- "data": {
- "type" : "binary",
- "optional": true
- }
- }
- },
- {
- "id": "ArrayObject",
- "type": "object",
- "properties": {
- "TheArray": {
- "type": "array",
- "items": {"type": "string"},
- "optional": true,
- "description": "Expecting a list?"
- }
- }
- }
- ],
- "functions": [
- {
- "name": "testString",
- "type": "function",
- "description": "Takes a string. Or not.",
- "parameters": [
- {
- "name": "str",
- "type": "string",
- "optional": true
- }
- ]
- },
- {
- "name": "testFunction",
- "type": "function",
- "description": "Specifies a number of parameters.",
- "parameters": [
- {
- "name": "num",
- "type": "integer"
- }
- ]
- },
- {
- "name": "testTypeInObject",
- "type": "function",
- "description": "Takes a TestType.",
- "parameters": [
- {
- "name": "paramObject",
- "type": "object",
- "properties": {
- "testType": {"$ref": "error_generation.TestType", "optional": true},
- "boolean": {"type": "boolean"}
- }
- }
- ]
- }
- ]
- }
-]
« no previous file with comments | « tools/json_schema_compiler/test/enums_unittest.cc ('k') | tools/json_schema_compiler/test/error_generation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698