apisix_validate_resource_config
Check if an APISIX resource configuration conforms to its JSON schema, preventing invalid submissions. Supports routes, upstreams, services, and more; requires APISIX 3.5+ but gracefully degrades on older versions.
Instructions
校验资源配置是否符合 JSON schema(需 APISIX ≥3.5)。
仅校验 JSON schema,不校验引用存在性与插件配置合法性。 通过不代表写入必定成功。<3.5 实例上优雅降级。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | 待提交的资源配置体(JSON object),符合对应资源的 JSON schema | |
| resource | Yes | 资源类型:routes / upstreams / services 等 |