Skip to content

Commit 1f0bc54

Browse files
fix: remove 50 max items limit for translation
1 parent eb174fe commit 1f0bc54

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

openapi.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@
6363
],
6464
"properties": {
6565
"text": {
66-
"description": "Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified\nmultiple times and translations are returned in the same order as they are requested. Each of the\nparameter values may contain multiple sentences. Up to 50 texts can be sent for translation in one\nrequest.",
66+
"description": "Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified\nmultiple times and translations are returned in the same order as they are requested. Each of the\nparameter values may contain multiple sentences.",
6767
"type": "array",
68-
"maxItems": 50,
6968
"items": {
7069
"type": "string",
7170
"example": "Hello, World!"

openapi.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,8 @@ paths:
125125
description: |-
126126
Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified
127127
multiple times and translations are returned in the same order as they are requested. Each of the
128-
parameter values may contain multiple sentences. Up to 50 texts can be sent for translation in one
129-
request.
128+
parameter values may contain multiple sentences.
130129
type: array
131-
maxItems: 50
132130
items:
133131
type: string
134132
example: Hello, World!

openapi_gitbook.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ paths:
8383
text:
8484
description: |-
8585
Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified
86-
up to 50 times in a single request. Translations are returned in the same order as they are requested.
86+
many times in a single request, within the request size limit (128KiB). Translations are returned
87+
in the same order as they are requested.
8788
type: array
88-
maxItems: 50
8989
items:
9090
type: string
9191
example: Hello, World!
@@ -142,8 +142,9 @@ paths:
142142
- target_lang
143143
properties:
144144
text:
145-
description: Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified
146-
up to 50 times in a single request. Translations are returned in the same order as they are requested.
145+
description: Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be
146+
specified many times in a single request, within the request size limit (128KiB). Translations are
147+
returned in the same order as they are requested.
147148
type: array
148149
items:
149150
type: string

0 commit comments

Comments
 (0)