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

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

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove whitespace 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/additionalProperties.json
diff --git a/tools/json_schema_compiler/test/additionalProperties.json b/tools/json_schema_compiler/test/additionalProperties.json
new file mode 100644
index 0000000000000000000000000000000000000000..8e5b24bcc1e0fc4d45d223fa6af52625705ac3c5
--- /dev/null
+++ b/tools/json_schema_compiler/test/additionalProperties.json
@@ -0,0 +1,46 @@
+[
+ {
+ "namespace": "additionalProperties",
+ "types": [
+ ],
not at google - send to devlin 2012/02/29 03:06:30 seems unnecessary actually, what about additional
calamity 2012/03/01 04:47:09 Done.
+ "functions": [
+ {
+ "name": "additionalProperties",
+ "type": "function",
+ "description": "Takes an object with additionalProperties",
+ "parameters": [
+ {
+ "name": "paramObject",
+ "type": "object",
+ "properties": {},
+ "additionalProperties": {"type": "any"}
+ }
+ ]
+ },
+ {
+ "name": "returnAdditionalProperties",
+ "type": "function",
+ "description": "Returns an object with additionalProperties.",
+ "nodoc": "true",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {
+ "name": "resultObject",
+ "type": "object",
+ "properties": {
+ "integer": {"type": "integer"}
+ },
+ "additionalProperties": {"type": "any"}
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
+
not at google - send to devlin 2012/02/29 03:06:30 some more things to test: (and in C++) - more than
calamity 2012/03/01 04:47:09 Done.
+

Powered by Google App Engine
This is Rietveld 408576698