Engine suggestion invalid

Moses SkodaEngineer1 min read

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/engine-suggestion-invalid. See Errors and status codes for the shape every error shares.

Cannot apply this engine suggestion. Its rule text is empty. Dismiss it.

Fields#

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
idstring
reason"ruleTextEmpty" | "changeUnreadable" | GlossaryTermTextEmpty | GlossaryTermLocaleNotCovered | GlossaryTermTargetAmbiguous | GlossaryTermWildcardTranslated

Example#

json
{
  "detail": "Cannot apply this engine suggestion. Its rule text is empty. Dismiss it.",
  "id": "<id>",
  "reason": "ruleTextEmpty",
  "type": "https://lingo.dev/docs/api/errors/engine-suggestion-invalid",
  "status": 422,
  "title": "Engine suggestion invalid"
}

Returned by#

  • POST /v2/engine-suggestions/{id}/apply