{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-translate/json-schema/ibm-translate-identified-languages-schema.json",
  "title": "IdentifiedLanguages",
  "description": "IdentifiedLanguages is the list of identified languages.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-translate-translation-api-openapi.yml#/components/schemas/IdentifiedLanguages",
  "type": "object",
  "properties": {
    "languages": {
      "type": "array",
      "description": "A ranking of identified languages with confidence scores.",
      "items": {
        "$ref": "#/$defs/IdentifiedLanguage"
      }
    }
  },
  "$defs": {
    "IdentifiedLanguage": {
      "type": "object",
      "description": "IdentifiedLanguage is the language and confidence score.",
      "properties": {
        "language": {
          "type": "string",
          "description": "The language code for an identified language."
        },
        "confidence": {
          "type": "number",
          "format": "double",
          "description": "The confidence score for the identified language. The score ranges from 0 to 1, with higher scores indicating greater confidence.",
          "minimum": 0,
          "maximum": 1
        }
      }
    }
  }
}