910e62b5创建于 1月15日历史提交
[
  {
    "namespace": "crossref",
    "description": "The crossref API.",
    "dependencies": ["simple_api"],
    "types": [
      {
        "id": "CrossrefType",
        "type": "object",
        "properties": {
          "testType": {
            "$ref": "simple_api.TestType"
          },
          "testEnumRequired": {
            "$ref": "simple_api.TestEnum"
          },
          "testEnumOptional": {
            "$ref": "simple_api.TestEnum",
            "optional": true
          },
          "testEnumOptionalExtra": {
            "$ref": "simple_api.TestEnum",
            "optional": true
          }
        }
      }
    ],
    "functions": [
      {
        "name": "testTypeOptionalParam",
        "type": "function",
        "description": "Takes TestType as a param.",
        "parameters": [
          {
            "name": "testType",
            "$ref": "simple_api.TestType",
            "optional": true
          }
        ],
      "returns_async": {
          "name": "callback",
          "parameters": []
        }
      },
      {
        "name": "getTestType",
        "type": "function",
        "description": "Return a TestType.",
        "parameters": [],
        "returns_async": {
          "name": "callback",
          "parameters": [
            {
              "name": "result",
              "$ref": "simple_api.TestType",
              "description": "A TestType."
            }
          ]
        }
      },
      {
        "name": "testTypeInObject",
        "type": "function",
        "description": "Takes an optional object with a TestType and a bool.",
        "parameters": [
          {
            "name": "paramObject",
            "type": "object",
            "properties": {
              "testType": {"$ref": "simple_api.TestType", "optional": true},
              "boolean": {"type": "boolean"}
            }
          }
        ],
        "returns_async": {
          "name": "callback",
          "parameters": []
        }
      }
    ]
  }
]