Skip to content

Commit

Permalink
Merge pull request #282 from tonymushah/add-auth-to-auth-required-end…
Browse files Browse the repository at this point in the history
…points

Add auth to auth required endpoints
  • Loading branch information
tonymushah authored Nov 4, 2024
2 parents abd925a + d848c2f commit 8ec2bcd
Show file tree
Hide file tree
Showing 105 changed files with 877 additions and 1,087 deletions.
999 changes: 447 additions & 552 deletions Cargo.lock

Large diffs are not rendered by default.

57 changes: 55 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,58 @@ members = [
"mangadex-api-schema",
"mangadex-api",
"mangadex-api-tests",
"mangadex-api-input-types"
]
"mangadex-api-input-types",
]
default-members = ["mangadex-api"]

[workspace.dependencies]
syn = "2"
darling = "0.20"
proc-macro2 = "1"
quote = "1"
tokio = { version = "1", default-features = false }
serde_json = "1"
color-print = "0.3.6"
jsonxf = "1"
anyhow = "1"
derive_builder = "0.20"
reqwest = { version = "0.12", features = [
"cookies",
"json",
"multipart",
"rustls-tls",
] }
serde = { version = "1", features = ["derive"]}
thiserror = "1"
time = { version = "0.3", features = [
"serde-human-readable",
"large-dates",
"local-offset",
] }
url = { version = "2.5", features = ["serde"] }
uuid = { version = "1.8", features = ["serde", "v4"] }
async-graphql = "7"
specta = { version = "1", features = ["uuid", "url", "time"] }
futures = "0.3"
bytes = "1.6"
serde_urlencoded = "0.7"
clap = "4.5.4"
fake = "2.9.2"
async-stream = "0.3"
tokio-stream = "0.1"
getset = "0"
wiremock = "0.6"
serde_qs = "0.13"

[workspace.dependencies.mangadex-api-types]
package = "mangadex-api-types-rust"
path = "./mangadex-api-types"
default-features = false

[workspace.dependencies.mangadex-api-schema]
package = "mangadex-api-schema-rust"
path = "./mangadex-api-schema"
default-features = false

[workspace.dependencies.mangadex-api]
path = "../mangadex-api"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Add `mangadex-api` to your dependencies:
# Types and schemas are always required
mangadex-api-types-rust = "0.9"
mangadex-api-schema-rust = "0.9"
mangadex-api = "3.3"
mangadex-api = "3.4"
```

If you are using [`cargo-edit`](https://github.com/killercup/cargo-edit), run
Expand Down
9 changes: 4 additions & 5 deletions mangadex-api-input-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mangadex-api-input-types"
version = "0.5.1"
version = "0.6.0"
authors = [ "tonymushah" ]
description = "A collection input types for mangadex-api"
edition = "2021"
Expand All @@ -12,7 +12,6 @@ repository = "https://github.com/tonymushah/mangadex-api"
serde = "1.0"
specta = { version = "1.0", optional = true }
tokio = { version = "1", features = ["full"] }
anyhow = "1.0.82"
async-graphql = { version = "7.0.3", optional = true, features = ["uuid", "url"] }

[dependencies.uuid]
Expand All @@ -29,18 +28,18 @@ features = ["serde"]
[dependencies.mangadex-api]
optional = true
path = "../mangadex-api"
version = "3.3"
version = "3.4"
features = ["serialize"]

[dependencies.mangadex-api-schema]
package = "mangadex-api-schema-rust"
version = "0.9"
version = "0.10"
path = "../mangadex-api-schema"
default-features = false

[dependencies.mangadex-api-types]
package = "mangadex-api-types-rust"
version = "0.9"
version = "0.10"
path = "../mangadex-api-types"
default-features = false

Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/api_client/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use mangadex_api::{v5::api_client::post::CreateClientBuilder, MangaDexClient};
use mangadex_api_schema::v5::ApiClientResponse;
use mangadex_api_types::ApiClientProfile;

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/api_client/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use mangadex_api_types::error::Result;

use uuid::Uuid;

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/api_client/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use mangadex_api::{v5::api_client::id::post::EditClientBuilder, MangaDexClient};

use uuid::Uuid;

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/api_client/get_unique.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use mangadex_api::{v5::api_client::id::get::GetClientBuilder, MangaDexClient};
use mangadex_api_types::ReferenceExpansionResource;
use uuid::Uuid;

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/api_client/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use mangadex_api::{v5::api_client::get::ListClientsBuilder, MangaDexClient};
use mangadex_api_types::{ApiClientState, ReferenceExpansionResource};

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/at_home/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use mangadex_api_types::error::Result;

use uuid::Uuid;

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/author/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use mangadex_api_types::error::Result;
use mangadex_api_schema::v5::LocalizedString;
use url::Url;

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/author/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use mangadex_api_schema::v5::LocalizedString;
use url::Url;
use uuid::Uuid;

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/author/get_unique.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use mangadex_api::{v5::author::id::get::GetAuthorBuilder, MangaDexClient};
use mangadex_api_types::ReferenceExpansionResource;
use uuid::Uuid;

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/author/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use mangadex_api::{v5::author::get::ListAuthorBuilder, MangaDexClient};
use mangadex_api_types::{AuthorSortOrder, ReferenceExpansionResource};
use uuid::Uuid;

#[derive(serde::Deserialize, Debug, Clone)]
#[derive(serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/captcha/solve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use mangadex_api_types::error::Result;

use serde::Deserialize;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/chapter/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use mangadex_api_types::Language;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/chapter/get_unique.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use mangadex_api_types::ReferenceExpansionResource;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/chapter/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use mangadex_api_types::{
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize, Default)]
#[derive(Debug, Clone, Deserialize, Default, PartialEq, Eq)]
#[serde(default)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/cover/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use mangadex_api_types::Language;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/cover/get_unique.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use mangadex_api_types::ReferenceExpansionResource;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/cover/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use mangadex_api_types::{CoverSortOrder, Language, ReferenceExpansionResource};
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize, Default)]
#[derive(Debug, Clone, Deserialize, Default, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/cover/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use mangadex_api_types::Language;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/custom_list/add_manga.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use mangadex_api_types::error::Result;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/custom_list/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use mangadex_api_types::CustomListVisibility;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/custom_list/get_lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use mangadex_api::{v5::user::list::get::MyCustomListsBuilder, MangaDexClient};

use serde::Deserialize;

#[derive(Debug, Clone, Deserialize, Default)]
#[derive(Debug, Clone, Deserialize, Default, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/custom_list/get_user_lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use mangadex_api::{v5::user::id::list::get::UserCustomListsBuilder, MangaDexClie
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/custom_list/remove_manga.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use mangadex_api_types::error::Result;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/custom_list/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use mangadex_api_types::CustomListVisibility;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/feed/custom_list_feed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use mangadex_api_types::{
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/feed/followed_manga_feed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use mangadex_api_types::{
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize, Default)]
#[derive(Debug, Clone, Deserialize, Default, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/follows/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use mangadex_api::{v5::user::follows::group::get::FollowedGroupsBuilder, MangaDe
use mangadex_api_types::ReferenceExpansionResource;
use serde::Deserialize;

#[derive(Debug, Clone, Deserialize, Default)]
#[derive(Debug, Clone, Deserialize, Default, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[serde(default)]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/follows/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use mangadex_api::{v5::user::follows::list::get::GetFollowedCustomListsBuilder,

use serde::Deserialize;

#[derive(Debug, Clone, Deserialize, Default)]
#[derive(Debug, Clone, Deserialize, Default, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[serde(default)]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/follows/mangas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use mangadex_api::{v5::user::follows::manga::get::FollowedMangaBuilder, MangaDex
use mangadex_api_types::ReferenceExpansionResource;
use serde::Deserialize;

#[derive(Debug, Clone, Deserialize, Default)]
#[derive(Debug, Clone, Deserialize, Default, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[serde(default)]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/follows/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use mangadex_api::{v5::user::follows::user::get::FollowedUsersBuilder, MangaDexC

use serde::Deserialize;

#[derive(Debug, Clone, Deserialize, Default)]
#[derive(Debug, Clone, Deserialize, Default, PartialEq, Eq)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[serde(default)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/forums/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use mangadex_api_types::ForumThreadType;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
2 changes: 1 addition & 1 deletion mangadex-api-input-types/src/legacy/mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use mangadex_api::{v5::legacy::mapping::post::LegacyIdMappingBuilder, MangaDexCl
use mangadex_api_types::LegacyMappingType;
use serde::Deserialize;

#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
#[cfg_attr(feature = "async-graphql", derive(async_graphql::InputObject))]
Expand Down
Loading

0 comments on commit 8ec2bcd

Please sign in to comment.