{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/api-evangelist/yandex-translate/main/json-schema/translate-response.json", "title": "TranslateResponse", "description": "Response from the Yandex Translate API translate endpoint", "type": "object", "properties": { "translations": { "type": "array", "description": "Array of translated texts in the same order as the input texts.", "items": { "$ref": "#/definitions/TranslatedText" } } }, "definitions": { "TranslatedText": { "type": "object", "description": "A single translated text result", "properties": { "text": { "type": "string", "description": "The translated text.", "example": "Hello, world!" }, "detectedLanguageCode": { "type": "string", "description": "The detected language code of the source text in ISO 639-1 format (e.g., 'ru').", "example": "ru" } } } } }