没有匹配的测量项
了解 NoMeasurementsMatch 错误(422 无法处理的内容)的含义、包含的字段,以及哪些端点会返回该错误。
出现此问题时,API 会返回 422 Unprocessable Content,其 type 为 https://lingo.dev/docs/api/errors/no-measurements-match。有关所有错误的通用结构,请参阅错误和状态码。
所选自定义测量项均不覆盖本次以 <sourceLocale> 为源语言区域的检查所涉及的目标语言区域,因此不会运行任何测量。请选择适用于这些语言区域的测量项,或创建条件覆盖这些语言区域的自定义测量项。
字段 #
除了标准的 type、status、title 和 detail 成员,响应体还包含以下字段。detail 文本根据这些字段生成,客户端也可以改为显示自己的文本。
| 字段 | 类型 |
|---|---|
sourceLocale | string |
示例 #
JSON
{
"detail": "No chosen custom measurement covers a target locale of this check from <sourceLocale>, so it would run nothing. Choose measurements offered for these locales, or create a custom measurement whose conditions cover them.",
"sourceLocale": "<sourceLocale>",
"type": "https://lingo.dev/docs/api/errors/no-measurements-match",
"status": 422,
"title": "No measurements match"
}