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

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

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add any in arrays to util.h Created 8 years, 10 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/any.json
diff --git a/tools/json_schema_compiler/test/any.json b/tools/json_schema_compiler/test/any.json
new file mode 100644
index 0000000000000000000000000000000000000000..b19db828e7b2c184fc736d23c060a93379db55ea
--- /dev/null
+++ b/tools/json_schema_compiler/test/any.json
@@ -0,0 +1,54 @@
+[
+ {
+ "namespace": "any",
+ "types": [
+ {
+ "id": "AnyType",
+ "type": "object",
+ "properties": {
+ "any": {
+ "type": "any",
+ "description": "Any way you want it, that's the way you need it."
+ }
+ }
+ }
+ ],
+ "functions": [
+ {
+ "name": "optionalAny",
+ "type": "function",
+ "description": "Takes an optional any param.",
+ "parameters": [
+ {
+ "type": "any",
+ "name": "any",
+ "optional": true
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "returnAny",
+ "type": "function",
+ "description": "Returns any.",
+ "nodoc": "true",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {
+ "name": "result",
+ "type": "any"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
« no previous file with comments | « tools/json_schema_compiler/test/additional_properties_unittest.cc ('k') | tools/json_schema_compiler/test/any_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698