Skip to content

Commit 48eccf9

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#46)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent d481e20 commit 48eccf9

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/libs/DeepL/openapi.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,13 +551,16 @@ paths:
551551
in the same order as they are requested. Each text in the array is translated independently — texts
552552
do not share context with each other.
553553
type: array
554+
x-default:
555+
- Hello, World!
554556
items:
555557
type: string
556558
example: Hello, World!
557559
source_lang:
558560
$ref: '#/components/schemas/SourceLanguage'
559561
target_lang:
560562
$ref: '#/components/schemas/TargetLanguage'
563+
x-default: DE
561564
context:
562565
$ref: '#/components/schemas/Context'
563566
show_billed_characters:
@@ -1827,6 +1830,8 @@ paths:
18271830
text:
18281831
description: Text to be improved. Only UTF-8-encoded plain text is supported. Improvements are returned in the same order as they are requested.
18291832
type: array
1833+
x-default:
1834+
- this is a example sentence to imprve
18301835
items:
18311836
type: string
18321837
example: this is a example sentence to imprve
@@ -1845,6 +1850,8 @@ paths:
18451850
text:
18461851
description: Text to be improved. Only UTF-8-encoded plain text is supported. Improvements are returned in the same order as they are requested.
18471852
type: array
1853+
x-default:
1854+
- this is a example sentence to imprve
18481855
items:
18491856
type: string
18501857
example: this is a example sentence to imprve
@@ -1922,6 +1929,8 @@ paths:
19221929
text:
19231930
description: Text to be corrected. Only UTF-8-encoded plain text is supported. Corrections are returned in the same order as they are requested.
19241931
type: array
1932+
x-default:
1933+
- this is a example sentence to imprve
19251934
items:
19261935
type: string
19271936
example: this is a example sentence to imprve
@@ -1936,6 +1945,8 @@ paths:
19361945
text:
19371946
description: Text to be corrected. Only UTF-8-encoded plain text is supported. Corrections are returned in the same order as they are requested.
19381947
type: array
1948+
x-default:
1949+
- this is a example sentence to imprve
19391950
items:
19401951
type: string
19411952
example: this is a example sentence to imprve
@@ -2329,6 +2340,7 @@ paths:
23292340
- write
23302341
- style_rules
23312342
example: translate_text
2343+
x-default: translate_text
23322344
description: |-
23332345
The resource to retrieve languages for. Supported values: `translate_text`, `translate_document`,
23342346
`glossary`, `voice`, `write`, `style_rules`.
@@ -2611,8 +2623,10 @@ paths:
26112623
properties:
26122624
name:
26132625
$ref: '#/components/schemas/StyleRuleName'
2626+
x-default: My style rules
26142627
language:
26152628
$ref: '#/components/schemas/StyleRuleLanguage'
2629+
x-default: de
26162630
configured_rules:
26172631
$ref: '#/components/schemas/ConfiguredRules'
26182632
custom_instructions:
@@ -2859,10 +2873,12 @@ paths:
28592873
type: string
28602874
description: Label for the custom instruction
28612875
maxLength: 100
2876+
x-default: Currency custom instruction
28622877
prompt:
28632878
type: string
28642879
description: Instruction text
28652880
maxLength: 300
2881+
x-default: "Have currency symbols before the numerical value (e.g. $100, €100)"
28662882
source_language:
28672883
type: string
28682884
description: Optional source language code

0 commit comments

Comments
 (0)