Skip to content

Commit

Permalink
Revert "Debug failing title search json respose"
Browse files Browse the repository at this point in the history
  • Loading branch information
takassh authored Oct 30, 2024
1 parent 3c4aa6b commit 15660b5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 67 deletions.
6 changes: 0 additions & 6 deletions src/endpoints/blocks/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,3 @@ fn test_deserialize_synced_from_block() {
let result = serde_json::from_str::<Vec<Block>>(include_str!("tests/synced_from_block.json"));
assert!(result.is_ok())
}

#[test]
fn test_deserialize_synced_from_block() {
let result = serde_json::from_str::<Vec<Block>>(include_str!("tests/synced_from_block.json"));
assert!(result.is_ok())
}
9 changes: 0 additions & 9 deletions src/endpoints/search/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,3 @@ fn test_search_by_title_200() {
));
assert!(result.is_ok())
}

#[test]
fn test_search_by_title_failure() {
let result = serde_json::from_str::<SearchByTitleResponse>(include_str!(
"tests/search_by_title_failure_with_missing_unique_id.json"
));
dbg!(&result);
assert!(result.is_ok())
}

This file was deleted.

4 changes: 1 addition & 3 deletions src/objects/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ pub struct SelectPropertyValue {

#[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)]
pub struct UniqueIDPropertyValue {
#[serde(default)]
#[doc = "This field is null only in extremely rare cases, for instance when it's being used as a Template for a Task in Notion's Project Management Template: https://www.notion.so/templates/notion-projects-and-tasks"]
pub number: Option<Number>,
pub number: Number,
pub prefix: Option<String>,
}

Expand Down

0 comments on commit 15660b5

Please sign in to comment.