Skip to content

fix: change uid field in QCCollaborator to Optional[int]#606

Merged
Martin-Molinero merged 1 commit into
QuantConnect:masterfrom
nelsonvega:validation-error-for-QCProject
Jan 12, 2026
Merged

fix: change uid field in QCCollaborator to Optional[int]#606
Martin-Molinero merged 1 commit into
QuantConnect:masterfrom
nelsonvega:validation-error-for-QCProject

Conversation

@nelsonvega

Copy link
Copy Markdown
Contributor

Fxing error after doing lean cloud pull

Error: 1 validation error for QCProject
collaborators -> 1 -> uid
none is not an allowed value (type=type_error.none.not_allowed)

@nelsonvega nelsonvega marked this pull request as draft January 12, 2026 01:02
@nelsonvega

Copy link
Copy Markdown
Contributor Author

lean cloud pull fails with a QCProject validation error because a collaborator entry in the project’s metadata has uid = None, which is not allowed by the schema used by the CLI. This causes the pydantic validation step for the collaborators[1].uid field to reject the project definition and abort the pull operation.

@nelsonvega nelsonvega closed this Jan 12, 2026
@nelsonvega nelsonvega reopened this Jan 12, 2026
@nelsonvega nelsonvega marked this pull request as ready for review January 12, 2026 01:06

@Martin-Molinero Martin-Molinero left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Martin-Molinero Martin-Molinero merged commit b459408 into QuantConnect:master Jan 12, 2026
23 of 28 checks passed
@nelsonvega nelsonvega deleted the validation-error-for-QCProject branch January 12, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants