()
| 192 | |
| 193 | #[test] |
| 194 | fn create_org_request_body_no_email() { |
| 195 | let body = CreateOrgRequest { |
| 196 | slug: "acme-corp", |
| 197 | name: "Acme Corp", |
| 198 | email: None, |
| 199 | }; |
| 200 | let json = serde_json::to_value(&body).unwrap(); |
| 201 | assert_eq!(json["name"], "Acme Corp"); |
| 202 | assert!(json.get("email").is_none()); |
| 203 | } |
| 204 | |
| 205 | #[test] |
| 206 | fn update_org_request_partial() { |