我收到Data does not match any schemas from 'oneOf'以下规范的错误:
{
"info": {
"version": "1.0.0",
"title": "REST API"
},
"paths": {
"/doit": {
"post": {
"responses": {
"200": {
"description": "Successful response"
}
},
"parameters": [
{
"type": "object",
"schema": {
"$ref": "#/definitions/ResponseDefinition"
},
"required": "true",
"name": "docs",
"in": "body"
}
]
}
}
},
"swagger": "2.0",
"definitions": {
"ResponseDefinition": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": ""
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
来自swagger-tools验证器的完整错误:
#/paths/~1doit/post/parameters/0: Data does …Run Code Online (Sandbox Code Playgroud) 我在目录的子文件夹中创建了一个自定义拉取请求模板(遵循GitHub Docs).github,例如:
\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 PULL_REQUEST_TEMPLATE\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 custom-template.md\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 PULL_REQUEST_TEMPLATE.md\nRun Code Online (Sandbox Code Playgroud)\n关于带有查询参数的问题和拉取请求的自动化表示您可以在创建拉取请求时将自定义模板名称作为查询参数传递,例如
\n\n\n您可以使用 template 查询参数指定一个模板来自动填充问题或拉取请求正文。
\n
我尝试在创建新的拉取请求"template": "custom-template.md"时添加为查询字符串,但最终得到一个空的拉取请求模板。目录中的默认模板仍然按预期工作,但我不知道如何通过 API 加载自定义模板。.github