Skip to content

Commit 530f74f

Browse files
Merge pull request #38 from DeepLcom/feat/add-tag-handling-version
feat: add tag handling version
2 parents acb2582 + c1f1329 commit 530f74f

4 files changed

Lines changed: 37 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ The major and minor version numbers reflect changes to the DeepL API
99
number is used only for corrections to the OpenAPI specification, for example:
1010
typos, schema fixes, or adding examples.
1111

12+
## [3.6.0] - 2025-10-29
13+
### Added
14+
* Add new parameter `tag_handling_version` to `/v2/translate`
15+
1216
## [3.5.0] - 2025-10-27
1317
### Added
1418
* Add new endpoint `v2/admin/analytics` which enables admins to retrieve usage statistics across their organization

openapi.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@
223223
"tag_handling": {
224224
"$ref": "#/components/schemas/TagHandlingOption"
225225
},
226+
"tag_handling_version": {
227+
"$ref": "#/components/schemas/TagHandlingVersionOption"
228+
},
226229
"outline_detection": {
227230
"$ref": "#/components/schemas/OutlineDetectionOptionStr"
228231
},
@@ -3334,6 +3337,14 @@
33343337
"html"
33353338
]
33363339
},
3340+
"TagHandlingVersionOption": {
3341+
"description": "Sets which version of the tag handling algorithm should be used. Options currently available:\n * `v2`: Improved algorithm released in October 2025 (default as of December 2025).\n * `v1`: Traditional algorithm (default until December 2025).",
3342+
"type": "string",
3343+
"enum": [
3344+
"v1",
3345+
"v2"
3346+
]
3347+
},
33373348
"UsageResponse": {
33383349
"type": "object",
33393350
"properties": {

openapi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ paths:
238238
pair of the glossary has to match the language pair of the request.
239239
tag_handling:
240240
$ref: '#/components/schemas/TagHandlingOption'
241+
tag_handling_version:
242+
$ref: '#/components/schemas/TagHandlingVersionOption'
241243
outline_detection:
242244
$ref: '#/components/schemas/OutlineDetectionOptionStr'
243245
non_splitting_tags:
@@ -2666,6 +2668,15 @@ components:
26662668
enum:
26672669
- xml
26682670
- html
2671+
TagHandlingVersionOption:
2672+
description: |-
2673+
Sets which version of the tag handling algorithm should be used. Options currently available:
2674+
* `v2`: Improved algorithm released in October 2025 (default as of December 2025).
2675+
* `v1`: Traditional algorithm (default until December 2025).
2676+
type: string
2677+
enum:
2678+
- v1
2679+
- v2
26692680
UsageResponse:
26702681
type: object
26712682
properties:

openapi_gitbook.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ paths:
124124
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
125125
tag_handling:
126126
$ref: '#/components/schemas/TagHandlingOption'
127+
tag_handling_version:
128+
$ref: '#/components/schemas/TagHandlingVersionOption'
127129
outline_detection:
128130
$ref: '#/components/schemas/OutlineDetectionOption'
129131
non_splitting_tags:
@@ -2343,6 +2345,15 @@ components:
23432345
- xml
23442346
- html
23452347
example: html
2348+
TagHandlingVersionOption:
2349+
description: |-
2350+
Sets which version of the tag handling algorithm should be used. Options currently available:
2351+
* `v2`: Improved algorithm released in October 2025 (default as of December 2025).
2352+
* `v1`: Traditional algorithm (default until December 2025).
2353+
type: string
2354+
enum:
2355+
- v1
2356+
- v2
23462357
NonSplittingTagCommaSeparatedList:
23472358
allOf:
23482359
- $ref: '#/components/schemas/TagCommaSeparatedList'

0 commit comments

Comments
 (0)