-
Notifications
You must be signed in to change notification settings - Fork 10
Add require_2fa_by, extra_domains to UpdateOrg. Add-legacy_user_id to… #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |
|
|
||
| use serde_json::Value; | ||
|
|
||
| #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] | ||
|
Check failure on line 15 in src/models/update_org_request.rs
|
||
| pub struct UpdateOrgRequest { | ||
| #[serde(rename = "name", skip_serializing_if = "Option::is_none")] | ||
| pub name: Option<String>, | ||
|
|
@@ -30,9 +30,10 @@ | |
| pub restrict_to_domain: Option<bool>, | ||
| #[serde(rename = "legacy_org_id", skip_serializing_if = "Option::is_none")] | ||
| pub legacy_org_id: Option<String>, | ||
| // TODO: This should be added once supported in the FE. | ||
| // #[serde(rename = "require_2fa_by", skip_serializing_if = "Option::is_none")] | ||
| // pub require_2fa_by: Option<chrono::DateTime<chrono::Utc>>, | ||
| #[serde(rename = "require_2fa_by", skip_serializing_if = "Option::is_none")] | ||
| pub require_2fa_by: Option<chrono::DateTime<chrono::Utc>>, | ||
|
Check failure on line 34 in src/models/update_org_request.rs
|
||
|
||
| #[serde(rename = "extra_domains", skip_serializing_if = "Option::is_none")] | ||
| pub extra_domains: Vec<String>, | ||
| } | ||
|
|
||
| impl UpdateOrgRequest { | ||
|
|
@@ -46,7 +47,8 @@ | |
| autojoin_by_domain: None, | ||
| restrict_to_domain: None, | ||
| legacy_org_id: None, | ||
| // require_2fa_by: None, | ||
| require_2fa_by: None, | ||
| extra_domains: None, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, a correction on this one... to distinguish between the cases where there's no change vs setting to an empty array. Then this line stays |
||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we don't actually need
DeserializeonUpdateOrgRequest