Skip to content

Commit 4540199

Browse files
fix: Require value in EnvVarRequest and allow null error messages in request dicts (#1001)
- Regenerates the Pydantic models, TypedDicts, and literal aliases from the [published OpenAPI specification](https://docs.apify.com/api/openapi.json), and records its version in `pyproject.toml`. - Specification version: `v2-2026-07-28T083939Z` -> `v2-2026-08-05T133145Z`.
1 parent a22c52b commit 4540199

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ keep_model_order = true
255255
# workflow committing nothing unless the models changed. A local regeneration that only moves this line is that
256256
# same case - drop it rather than committing it alone.
257257
[tool.apify.openapi-spec]
258-
version = "v2-2026-07-28T083939Z"
258+
version = "v2-2026-08-05T133145Z"
259259

260260
[tool.uv]
261261
# Minimal defense against supply-chain atatcks.

‎src/apify_client/_models.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,10 @@ class EnvVarRequest(EnvVar):
13301330
populate_by_name=True,
13311331
alias_generator=to_camel,
13321332
)
1333+
value: Annotated[str, Field(examples=['my-value'])]
1334+
"""
1335+
The value of the environment variable. If `isSecret` is `true`, this value isn't returned by the API.
1336+
"""
13331337

13341338

13351339
@docs_group('Models')

‎src/apify_client/_typeddicts.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class RequestBaseDict(TypedDict):
3939
"""
4040
Indicates whether the request should not be retried if processing fails.
4141
"""
42-
error_messages: NotRequired[list[str]]
42+
error_messages: NotRequired[list[str] | None]
4343
"""
4444
Error messages recorded from failed processing attempts.
4545
"""
@@ -81,7 +81,7 @@ class RequestBaseCamelDict(TypedDict):
8181
"""
8282
Indicates whether the request should not be retried if processing fails.
8383
"""
84-
errorMessages: NotRequired[list[str]]
84+
errorMessages: NotRequired[list[str] | None]
8585
"""
8686
Error messages recorded from failed processing attempts.
8787
"""

0 commit comments

Comments
 (0)