モデルチェーンが不完全

Moses Skodaエンジニア読了目安 1分

APIは、この問題を422 Unprocessable Contentで返します。typeはhttps://lingo.dev/docs/api/errors/model-chain-incompleteです。すべてのエラーに共通する形式については、エラーとステータスコードを参照してください。

<sourceLocale>→<targetLocale>のチェーンを並べ替えられません。リクエストには、チェーン内のすべてのモデル設定をそれぞれ一度だけ指定し、チェーン外の設定は含めないでください。まずチェーンを読み取り、含まれている識別子を送り返してください。

フィールド#

レスポンス本文には、標準のtype、status、title、detailの各メンバーに加えて、次のフィールドが含まれます。detailのテキストはこれらのフィールドから生成されるため、クライアント側で独自のテキストに置き換えて表示できます。

フィールド型
sourceLocalestring
targetLocalestring

例#

json
{
  "detail": "Cannot reorder the <sourceLocale>→<targetLocale> chain. The request must list every model config in that chain exactly once, and nothing outside it. Read the chain first and send back the ids it holds.",
  "sourceLocale": "<sourceLocale>",
  "targetLocale": "<targetLocale>",
  "type": "https://lingo.dev/docs/api/errors/model-chain-incomplete",
  "status": 422,
  "title": "Model chain incomplete"
}

このエラーを返すエンドポイント#

  • PUT /v2/engines/{engineId}/model-configs/order