diff --git a/api-reference/openapi.json b/api-reference/openapi.json index cbf8815..1a6a529 100644 --- a/api-reference/openapi.json +++ b/api-reference/openapi.json @@ -749,6 +749,9 @@ "text": { "description": "Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified\nmany times in a single request, within the request size limit (128KiB). Translations are returned\nin the same order as they are requested. Each text in the array is translated independently — texts\ndo not share context with each other.", "type": "array", + "x-default": [ + "Hello, World!" + ], "items": { "type": "string", "example": "Hello, World!" @@ -758,7 +761,8 @@ "$ref": "#/components/schemas/SourceLanguage" }, "target_lang": { - "$ref": "#/components/schemas/TargetLanguage" + "$ref": "#/components/schemas/TargetLanguage", + "x-default": "DE" }, "context": { "$ref": "#/components/schemas/Context" @@ -2651,6 +2655,9 @@ "text": { "description": "Text to be improved. Only UTF-8-encoded plain text is supported. Improvements are returned in the same order as they are requested.", "type": "array", + "x-default": [ + "this is a example sentence to imprve" + ], "items": { "type": "string", "example": "this is a example sentence to imprve" @@ -2678,6 +2685,9 @@ "text": { "description": "Text to be improved. Only UTF-8-encoded plain text is supported. Improvements are returned in the same order as they are requested.", "type": "array", + "x-default": [ + "this is a example sentence to imprve" + ], "items": { "type": "string", "example": "this is a example sentence to imprve" @@ -2792,6 +2802,9 @@ "text": { "description": "Text to be corrected. Only UTF-8-encoded plain text is supported. Corrections are returned in the same order as they are requested.", "type": "array", + "x-default": [ + "this is a example sentence to imprve" + ], "items": { "type": "string", "example": "this is a example sentence to imprve" @@ -2813,6 +2826,9 @@ "text": { "description": "Text to be corrected. Only UTF-8-encoded plain text is supported. Corrections are returned in the same order as they are requested.", "type": "array", + "x-default": [ + "this is a example sentence to imprve" + ], "items": { "type": "string", "example": "this is a example sentence to imprve" @@ -3421,6 +3437,7 @@ ] }, "example": "translate_text", + "x-default": "translate_text", "description": "The resource to retrieve languages for. Supported values: `translate_text`, `translate_document`,\n`glossary`, `voice`, `write`, `style_rules`." }, { @@ -3820,10 +3837,12 @@ ], "properties": { "name": { - "$ref": "#/components/schemas/StyleRuleName" + "$ref": "#/components/schemas/StyleRuleName", + "x-default": "My style rules" }, "language": { - "$ref": "#/components/schemas/StyleRuleLanguage" + "$ref": "#/components/schemas/StyleRuleLanguage", + "x-default": "de" }, "configured_rules": { "$ref": "#/components/schemas/ConfiguredRules" @@ -4213,12 +4232,14 @@ "label": { "type": "string", "description": "Label for the custom instruction", - "maxLength": 100 + "maxLength": 100, + "x-default": "Currency custom instruction" }, "prompt": { "type": "string", "description": "Instruction text", - "maxLength": 300 + "maxLength": 300, + "x-default": "Have currency symbols before the numerical value (e.g. $100, €100)" }, "source_language": { "type": "string", diff --git a/api-reference/openapi.yaml b/api-reference/openapi.yaml index 1c2c61a..7ebe086 100644 --- a/api-reference/openapi.yaml +++ b/api-reference/openapi.yaml @@ -551,6 +551,8 @@ paths: in the same order as they are requested. Each text in the array is translated independently — texts do not share context with each other. type: array + x-default: + - Hello, World! items: type: string example: Hello, World! @@ -558,6 +560,7 @@ paths: $ref: '#/components/schemas/SourceLanguage' target_lang: $ref: '#/components/schemas/TargetLanguage' + x-default: DE context: $ref: '#/components/schemas/Context' show_billed_characters: @@ -1871,6 +1874,8 @@ paths: description: Text to be improved. Only UTF-8-encoded plain text is supported. Improvements are returned in the same order as they are requested. type: array + x-default: + - this is a example sentence to imprve items: type: string example: this is a example sentence to imprve @@ -1890,6 +1895,8 @@ paths: description: Text to be improved. Only UTF-8-encoded plain text is supported. Improvements are returned in the same order as they are requested. type: array + x-default: + - this is a example sentence to imprve items: type: string example: this is a example sentence to imprve @@ -1968,6 +1975,8 @@ paths: description: Text to be corrected. Only UTF-8-encoded plain text is supported. Corrections are returned in the same order as they are requested. type: array + x-default: + - this is a example sentence to imprve items: type: string example: this is a example sentence to imprve @@ -1983,6 +1992,8 @@ paths: description: Text to be corrected. Only UTF-8-encoded plain text is supported. Corrections are returned in the same order as they are requested. type: array + x-default: + - this is a example sentence to imprve items: type: string example: this is a example sentence to imprve @@ -2377,6 +2388,7 @@ paths: - write - style_rules example: translate_text + x-default: translate_text description: |- The resource to retrieve languages for. Supported values: `translate_text`, `translate_document`, `glossary`, `voice`, `write`, `style_rules`. @@ -2659,8 +2671,10 @@ paths: properties: name: $ref: '#/components/schemas/StyleRuleName' + x-default: My style rules language: $ref: '#/components/schemas/StyleRuleLanguage' + x-default: de configured_rules: $ref: '#/components/schemas/ConfiguredRules' custom_instructions: @@ -2907,10 +2921,12 @@ paths: type: string description: Label for the custom instruction maxLength: 100 + x-default: Currency custom instruction prompt: type: string description: Instruction text maxLength: 300 + x-default: "Have currency symbols before the numerical value (e.g. $100, €100)" source_language: type: string description: Optional source language code diff --git a/docs.json b/docs.json index c6dc8cd..634890d 100644 --- a/docs.json +++ b/docs.json @@ -545,6 +545,7 @@ "contextual": { "options": [ "copy", + "download-spec", "chatgpt", "claude", "cursor",