Skip to content

Commit

Permalink
(#9) Remove tier stats object to avoid deserialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacSchemm committed Apr 27, 2024
1 parent 6e79af0 commit 2da6d88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DeviantArtFs/DeviantArtFs.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>net6.0;net48</TargetFrameworks>
<Version>9.1.0-rc1</Version>
<Version>9.1.1</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Isaac Schemm</Authors>
<Company></Company>
Expand Down
8 changes: 0 additions & 8 deletions DeviantArtFs/ResponseTypes/Deviation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,13 @@ type TierSettings = {
access_settings: string
}

type TierStats = {
subscribers: int option
deviations: int option
posts: int option
total: int option
}

type Tier = {
state: string option
is_user_subscribed: bool option
can_user_subscribe: bool option
subproductid: int option
dollar_price: string option
settings: TierSettings option
stats: TierStats option
}

type PremiumFolderData = {
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ access any of the other fields.

## Known issues

* The profile_pic field in the user.profile expansion is not supported due to circular type definitions. Get it from the full profile object instead.
* The api_session return object is not supported.
* The `profile_pic` field in the `user.profile` expansion is not supported due to circular type definitions. Get it from the full profile object instead.
* The `tier.stats` field is not supported due to serialization issues on DeviantArt's end (the empty object `{}` can be rendered as `[]` by the server).
* The `api_session` return object is not supported.

## Examples

Expand Down

0 comments on commit 2da6d88

Please sign in to comment.