Skip to content

Commit 2c0d2c6

Browse files
committed
Increase API-Call transform context maximum length
Fixes #1536
1 parent 8fc561b commit 2c0d2c6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Tekst-API/openapi.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7436,7 +7436,7 @@
74367436
},
74377437
{
74387438
"type": "string",
7439-
"maxLength": 10240,
7439+
"maxLength": 81920,
74407440
"minLength": 1
74417441
}
74427442
],
@@ -7563,7 +7563,7 @@
75637563
},
75647564
{
75657565
"type": "string",
7566-
"maxLength": 10240,
7566+
"maxLength": 81920,
75677567
"minLength": 1
75687568
}
75697569
],
@@ -7633,7 +7633,7 @@
76337633
},
76347634
{
76357635
"type": "string",
7636-
"maxLength": 10240,
7636+
"maxLength": 81920,
76377637
"minLength": 1
76387638
}
76397639
],

Tekst-API/tekst/resources/api_call.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class ApiCallContent(ContentBase):
261261
]
262262
transform_context: Annotated[
263263
ConStrOrNone(
264-
max_length=10240,
264+
max_length=81920,
265265
),
266266
Field(
267267
description=(

Tekst-Web/src/forms/formRules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export const contentFormRules: Record<string, Record<string, FormItemRule[]>> =
441441
minMaxCharsRule(1, 102400, 'blur'),
442442
],
443443
transformContext: [
444-
minMaxCharsRule(0, 10240, 'blur'),
444+
minMaxCharsRule(0, 81920, 'blur'),
445445
{
446446
validator: (_: FormItemRule, value: string) => {
447447
try {

0 commit comments

Comments
 (0)