Skip to content

Conversation

@ceciliastevens
Copy link
Contributor

Adds orgs and legal hold clients



class CreatorUser(ResponseModel):
user_id: Optional[str] = Field(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are all of the fields marked as Optional? I noticed that is the pattern on existing response models too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we don't mark them as optional, if they're ever missing the SDK will throw an exception instead of giving you the response, so we do it to try and make the user experience a bit smoother.

@ceciliastevens ceciliastevens merged commit e95a3c6 into main Jun 5, 2025
7 checks passed
@ceciliastevens ceciliastevens deleted the INTEG-2939/add-orgs branch June 5, 2025 15:05
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.

3 participants