Skip to content

Commit

Permalink
Change API inputs/outputs and structs to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Apr 27, 2024
1 parent 27dc67f commit f40f45a
Show file tree
Hide file tree
Showing 35 changed files with 1,873 additions and 1,962 deletions.
6 changes: 3 additions & 3 deletions src/api/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ fn admin_page_login() -> ApiResult<Html<String>> {
render_admin_login(None, None)
}

#[derive(Deserialize, Debug)]
#[allow(non_snake_case)]
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
struct InviteData {
email: String,
}
Expand Down Expand Up @@ -475,7 +475,7 @@ async fn resend_user_invite(uuid: &str, _token: AdminToken, mut conn: DbConn) ->
}
}

#[derive(Deserialize, Debug)]
#[derive(Debug, Deserialize)]
struct UserOrgTypeData {
user_type: NumberOrString,
user_uuid: String,
Expand Down

0 comments on commit f40f45a

Please sign in to comment.