1
0

refactor: 移除 defaults.http.method 配置,简化默认值体系

- HTTP checker defaults schema 不再支持 method 字段
- resolve 逻辑从三级 fallback 简化为两级(target -> 内置默认)
- 配置文件中出现 defaults.http.method 将触发未知字段校验错误
- per-target http.method 覆盖功能保持不变
- 同步更新示例配置、README 文档和测试用例
This commit is contained in:
2026-05-16 21:45:08 +08:00
parent 04c24e6796
commit e924732a02
7 changed files with 29 additions and 51 deletions

View File

@@ -35,38 +35,6 @@
"type": "integer"
}
]
},
"method": {
"anyOf": [
{
"const": "DELETE",
"type": "string"
},
{
"const": "GET",
"type": "string"
},
{
"const": "HEAD",
"type": "string"
},
{
"const": "OPTIONS",
"type": "string"
},
{
"const": "PATCH",
"type": "string"
},
{
"const": "POST",
"type": "string"
},
{
"const": "PUT",
"type": "string"
}
]
}
}
},