Skip to content

Commit

Permalink
Merge pull request #40 from Chloe-Woahie/dev-main
Browse files Browse the repository at this point in the history
v0.16.1
  • Loading branch information
fekie authored Apr 19, 2023
2 parents 809317e + 61dd4e0 commit 51c4cb1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
name = "roboat"
readme = "README.md"
repository = "https://github.com/Chloe-Woahie/roboat"
version = "0.16.0"
version = "0.16.1"

[dependencies]
reqwest = { version = "0.11.14", default-features=false, features = ["rustls-tls", "json"] }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Alternatively, you can add a specific version of roboat to your project by addin

```toml
[dependencies]
roboat = "0.16.0"
roboat = "0.16.1"
```

# Quick Start Examples
Expand Down
9 changes: 5 additions & 4 deletions src/catalog/avatar_catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ pub struct ItemDetails {
/// The statuses of an item (e.g., New, Sale). Does not exist on "new" limiteds.
pub item_statuses: Option<Vec<ItemStatus>>,
/// The restrictions on an item (e.g., ThirteenPlus, Limited).
pub item_restrictions: Vec<ItemRestriction>,
///
/// If there are none and the item is a non-tradable limited, then the field does not exist.
/// Otherwise, the vector exists but the length is zero.
pub item_restrictions: Option<Vec<ItemRestriction>>,
/// Whether the creator is verified by Roblox.
pub creator_has_verified_badge: bool,
/// The type of creator that created the item (User or Group).
Expand Down Expand Up @@ -404,9 +407,7 @@ impl TryFrom<request_types::ItemDetailsRaw> for ItemDetails {
let creator_type = value.creator_type.ok_or(RoboatError::MalformedResponse)?;
let item_statuses = value.item_status;

let item_restrictions = value
.item_restrictions
.ok_or(RoboatError::MalformedResponse)?;
let item_restrictions = value.item_restrictions;

let creator_has_verified_badge = value
.creator_has_verified_badge
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ mod validation;
// todo: name apis api bedev2 or something
// todo: rename methods and docs to remain consistent over what non-tradable limiteds are called.
// todo: add method to get items from catalog
// todo: make ItemDetails include both price and lowest price

use serde::{Deserialize, Serialize};

Expand Down

0 comments on commit 51c4cb1

Please sign in to comment.