apisix_validate_resource_config
Validate APISIX resource configuration against JSON schema before submission. Checks schema conformance for routes, upstreams, services, etc., with graceful degradation on older APISIX versions.
Instructions
校验资源配置是否符合 JSON schema(需 APISIX ≥3.5)。
仅校验 JSON schema,不校验引用存在性与插件配置合法性。 通过不代表写入必定成功。<3.5 实例上优雅降级。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource": "<resource>",
"config": "<config>"
},
"name": "apisix_validate_resource_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | 待提交的资源配置体(JSON object),符合对应资源的 JSON schema | |
| resource | Yes | 资源类型:routes / upstreams / services 等 |