shaka-packager/tools/json_schema_compiler/test/additional_properties.json

57 lines
1.4 KiB
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": [
{
"type": "function",
"name": "callback",
"parameters": [
{
"name": "resultObject",
"type": "object",
"properties": {
"integer": {"type": "integer"}
},
"additionalProperties": {"type": "string"}
}
]
}
]
}
]
}
]