chromium/tools/json_schema_compiler/test/additional_properties.json

[
  {
    "namespace": "additionalProperties",
    "description": "The additionalProperties API.",
    "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": [],
        "returns_async": {
          "name": "callback",
          "parameters": [
            {
              "name": "resultObject",
              "type": "object",
              "properties": {
                "integer": {"type": "integer"}
              },
              "additionalProperties": {"type": "string"}
            }
          ]
        }
      }
    ]
  }
]