알 수 없는 파일 형식

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 텍스트는 이 필드들을 바탕으로 생성되므로 클라이언트에서 자체 문구로 바꿔 표시할 수 있습니다.

필드유형
pathsstring[]

예시 #

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"
}