不明なファイル形式
FileFormatUnknown エラー(422 処理できないコンテンツ)の意味と、含まれるフィールド、このエラーを返すエンドポイントについて説明します。
この問題が発生すると、API は 422 Unprocessable Content を返します。その type は https://lingo.dev/docs/api/errors/file-format-unknown です。すべてのエラーに共通する構造については、エラーとステータスコードをご覧ください。
<path> の拡張子からは、ファイルの読み取り方法を判別できません。対応する拡張子には、.json、.yaml、.ts、.po、.xliff、.strings、.xcstrings、.arb、.properties、.csv、.md、.html などがあります。
フィールド #
レスポンスボディには、標準のメンバーである type、status、title、detail に加え、以下のフィールドが含まれます。detail のテキストはこれらのフィールドをもとに生成されるため、クライアント側で独自のテキストに置き換えて表示できます。
| フィールド | 型 |
|---|---|
paths | string[] |
例 #
JSON
{
"detail": "The extension of <path> does not say how to read the file. Supported extensions include .json, .yaml, .ts, .po, .xliff, .strings, .xcstrings, .arb, .properties, .csv, .md and .html.",
"paths": [
"<path>"
],
"type": "https://lingo.dev/docs/api/errors/file-format-unknown",
"status": 422,
"title": "File format unknown"
}