Skip to content

Commit

Permalink
update autocomplete (#25)
Browse files Browse the repository at this point in the history
* refactor: Removed the beta
field from the Autocomplete as it is no longer needed.

* feat: Update test case for school clean to use ucla
  • Loading branch information
vvillait88 authored Mar 18, 2024
1 parent c0c7ff1 commit 32b0a45
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "peopledatalabs"
version = "1.1.0"
version = "1.1.1"
edition = "2021"
description = "A Rust client for the People Data Labs API"
documentation = "https://docs.peopledatalabs.com/docs/rust-sdk"
Expand Down
1 change: 0 additions & 1 deletion examples/autocompete/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ fn main() {
field: "text".to_string(),
text: Some("full".to_string()),
titlecase: Some(false),
beta: Some(false),
};
let autocomplete_params = AutocompleteParams {
base_params: None,
Expand Down
1 change: 0 additions & 1 deletion src/api/autocomplete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ mod tests {
field: "school".to_string(),
text: Some("stanf".to_string()),
titlecase: Some(false),
beta: Some(false),
};

let autocomplete_params = AutocompleteParams {
Expand Down
2 changes: 1 addition & 1 deletion src/api/school.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mod tests {
assert_eq!(resp.status, 200);
assert_eq!(
resp.name,
Some("university of california, los angeles".to_string())
Some("ucla".to_string())
);
}
}
3 changes: 0 additions & 3 deletions src/models/autocomplete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ pub struct AutocompleteBaseParams {
/// Setting titlecase to true will titlecase the data in 200 responses
#[serde(rename = "titlecase", skip_serializing_if = "Option::is_none")]
pub titlecase: Option<bool>,
/// Setting beta to true will enable the beta autocomplete endpoint
#[serde(rename = "beta", skip_serializing_if = "Option::is_none")]
pub beta: Option<bool>,
}

#[derive(Debug, Serialize, Deserialize)]
Expand Down

0 comments on commit 32b0a45

Please sign in to comment.