fix(jobs): allow null folder_key on Job model#1637
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aligns the Orchestrator Job model with the server contract by allowing FolderKey to be null, preventing sdk.jobs.list() from failing with a Pydantic ValidationError on cross-folder job listings.
Changes:
- Make
Job.folder_keynullable (Optional[str]) with aNonedefault to match Orchestrator’snullable: trueschema behavior. - Bump
uipath-platformversion to0.1.51. - Update
uv.lockfiles to reflect the version bump.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/uipath/uv.lock | Updates locked uipath-platform version to 0.1.51. |
| packages/uipath-platform/uv.lock | Updates locked uipath-platform version to 0.1.51. |
| packages/uipath-platform/src/uipath/platform/orchestrator/job.py | Allows FolderKey to be null by making folder_key optional. |
| packages/uipath-platform/pyproject.toml | Bumps package version to 0.1.51. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
79
to
83
| has_errors: Optional[bool] = Field(default=None, alias="HasErrors") | ||
| has_warnings: Optional[bool] = Field(default=None, alias="HasWarnings") | ||
| job_error: Optional[JobErrorInfo] = Field(default=None, alias="JobError") | ||
| folder_key: str = Field(alias="FolderKey") | ||
| folder_key: Optional[str] = Field(default=None, alias="FolderKey") | ||
| id: int = Field(alias="Id") |
|
radugheo
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Job.folder_keyasOptional[str]sosdk.jobs.list()no longer raises a pydantic ValidationError when orchestrator returnsFolderKey: nullWhy
orchestrator's odata
/Jobsendpoint declaresFolderKeyasnullable