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

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: 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/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..03bbef8ea5fc84a6dffbcf7c2ed3c59cb7d491bd
--- /dev/null
+++ b/tools/json_schema_compiler/test/additionalProperties.json
@@ -0,0 +1,55 @@
+[
+ {
+ "namespace": "additionalProperties",
+ "types": [
+ {
+ "id": "AdditionalPropertiesType",
+ "type": "object",
+ "properties": {
+ "string": {
+ "type": "string",
+ "description": "Some string."
+ }
+ },
+ "additionalProperties": { "type": "any" }
+ }
+ ],
+ "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"}
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
« no previous file with comments | « tools/json_schema_compiler/previewserver.py ('k') | tools/json_schema_compiler/test/additional_properties_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698