nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: netwo-io/apistos
Pull request #47 (2024-02-19 11:28:30)

Fix ApiType derive with default parameter


Patch:
diff --git a/apistos-gen/src/lib.rs b/apistos-gen/src/lib.rs
index fa892d7..fe9ceaf 100644
--- a/apistos-gen/src/lib.rs
+++ b/apistos-gen/src/lib.rs
@@ -66,7 +66,7 @@ pub fn derive_api_type(input: TokenStream) -> TokenStream {
   let component_name = quote!(#ident).to_string();
   quote!(
     #[automatically_derived]
-    impl #generics schemars::JsonSchema for #ident #ty_generics #where_clause {
+    impl #ty_generics schemars::JsonSchema for #ident #ty_generics #where_clause {
        fn is_referenceable() -> bool {
         false
       }
@@ -86,7 +86,7 @@ pub fn derive_api_type(input: TokenStream) -> TokenStream {
     }
 
     #[automatically_derived]
-    impl #generics apistos::ApiComponent for #ident #ty_generics #where_clause {
+    impl #ty_generics apistos::ApiComponent for #ident #ty_generics #where_clause {
       fn child_schemas() -> Vec<(String, apistos::reference_or::ReferenceOr<apistos::Schema>)> {
         vec![]
       }


Test patch:
diff --git a/apistos-gen-test/src/tests/api_type_derive.rs b/apistos-gen-test/src/tests/api_type_derive.rs
index 11820ec..48e9f73 100644
--- a/apistos-gen-test/src/tests/api_type_derive.rs
+++ b/apistos-gen-test/src/tests/api_type_derive.rs
@@ -72,6 +72,44 @@ fn api_type_derive_with_format() {
   );
 }
 
+#[test]
+#[allow(dead_code)]
+fn api_type_derive_with_default_type_parameter() {
+  struct GenericHolder<T = String> {
+    inner: T,
+  }
+
+  #[derive(ApiType)]
+  struct Name<T = String>(GenericHolder<T>);
+
+  impl<T> TypedSchema for Name<T> {
+    fn schema_type() -> InstanceType {
+      InstanceType::String
+    }
+
+    fn format() -> Option<String> {
+      // not a real format but not a problem
+      Some("lastname".to_string())
+    }
+  }
+
+  let name_schema = <Name as ApiComponent>::schema();
+  let name_child_schemas = <Name as ApiComponent>::child_schemas();
+  assert!(name_schema.is_some());
+  assert!(name_child_schemas.is_empty());
+  let (schema_name, schema) = name_schema.expect("schema should be defined");
+  assert_eq!(schema_name, "Name");
+  assert_schema(&schema.clone());
+  let json = serde_json::to_value(schema).expect("Unable to serialize as Json");
+  assert_json_eq!(
+    json,
+    json!({
+      "type": "string",
+      "format": "lastname"
+    })
+  );
+}
+
 #[test]
 #[allow(dead_code)]
 fn api_type_derive_with_format_complex_struct() {
Repository: netwo-io/apistos
Pull request #49 (2024-02-20 14:30:01)

Prepare v0.1.2 release


Patch:
diff --git a/Cargo.toml b/Cargo.toml
index e3399f8..23c316d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,7 @@ documentation = "https://docs.rs/apistos/"
 license = "MIT OR Apache-2.0"
 rust-version = "1.71"
 publish = true
-version = "0.1.1"
+version = "0.1.2"
 
 [workspace.dependencies]
 actix-service = "2"
diff --git a/apistos-core/Cargo.toml b/apistos-core/Cargo.toml
index 53d6f64..50b5ac5 100644
--- a/apistos-core/Cargo.toml
+++ b/apistos-core/Cargo.toml
@@ -27,7 +27,7 @@ serde_qs = { workspace = true, features = ["actix4"], optional = true }
 uuid = { workspace = true, optional = true }
 url = { workspace = true, optional = true }
 
-apistos-models = { path = "../apistos-models", version = "0.1.1" }
+apistos-models = { path = "../apistos-models", version = "0.1.2" }
 
 [dev-dependencies]
 assert-json-diff = { workspace = true }
diff --git a/apistos/Cargo.toml b/apistos/Cargo.toml
index 8979a99..e88f32a 100644
--- a/apistos/Cargo.toml
+++ b/apistos/Cargo.toml
@@ -25,12 +25,12 @@ schemars = { workspace = true }
 serde = { workspace = true }
 serde_json = { workspace = true }
 
-apistos-core = { path = "../apistos-core", version = "0.1.1" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.1" }
-apistos-models = { path = "../apistos-models", version = "0.1.1" }
+apistos-core = { path = "../apistos-core", version = "0.1.2" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.2" }
+apistos-models = { path = "../apistos-models", version = "0.1.2" }
 
 [dev-dependencies]
-apistos-models = { path = "../apistos-models", version = "0.1.1", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.2", features = ["deserialize"] }
 
 [lints]
 workspace = true


Test patch:
diff --git a/apistos-gen-test/Cargo.toml b/apistos-gen-test/Cargo.toml
index 9098cd5..a0de214 100644
--- a/apistos-gen-test/Cargo.toml
+++ b/apistos-gen-test/Cargo.toml
@@ -20,8 +20,8 @@ assert-json-diff = { workspace = true }
 chrono = { workspace = true, features = ["serde"] }
 futures-core = { workspace = true }
 apistos = { path = "../apistos", features = ["multipart"] }
-apistos-core = { path = "../apistos-core", version = "0.1.1" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.1" }
+apistos-core = { path = "../apistos-core", version = "0.1.2" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.2" }
 schemars = { workspace = true }
 serde = { version = "1.0.188", features = ["derive"] }
 serde_json = { workspace = true }
Repository: netwo-io/apistos
Pull request #53 (2024-02-20 15:21:44)

Prepare v0.1.3 release


Patch:
diff --git a/Cargo.toml b/Cargo.toml
index 23c316d..f75373d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,7 @@ documentation = "https://docs.rs/apistos/"
 license = "MIT OR Apache-2.0"
 rust-version = "1.71"
 publish = true
-version = "0.1.2"
+version = "0.1.3"
 
 [workspace.dependencies]
 actix-service = "2"
diff --git a/apistos-core/Cargo.toml b/apistos-core/Cargo.toml
index 50b5ac5..8dff6fc 100644
--- a/apistos-core/Cargo.toml
+++ b/apistos-core/Cargo.toml
@@ -27,7 +27,7 @@ serde_qs = { workspace = true, features = ["actix4"], optional = true }
 uuid = { workspace = true, optional = true }
 url = { workspace = true, optional = true }
 
-apistos-models = { path = "../apistos-models", version = "0.1.2" }
+apistos-models = { path = "../apistos-models", version = "0.1.3" }
 
 [dev-dependencies]
 assert-json-diff = { workspace = true }
diff --git a/apistos/Cargo.toml b/apistos/Cargo.toml
index e88f32a..ba30b39 100644
--- a/apistos/Cargo.toml
+++ b/apistos/Cargo.toml
@@ -25,12 +25,12 @@ schemars = { workspace = true }
 serde = { workspace = true }
 serde_json = { workspace = true }
 
-apistos-core = { path = "../apistos-core", version = "0.1.2" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.2" }
-apistos-models = { path = "../apistos-models", version = "0.1.2" }
+apistos-core = { path = "../apistos-core", version = "0.1.3" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.3" }
+apistos-models = { path = "../apistos-models", version = "0.1.3" }
 
 [dev-dependencies]
-apistos-models = { path = "../apistos-models", version = "0.1.2", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.3", features = ["deserialize"] }
 
 [lints]
 workspace = true


Test patch:
diff --git a/apistos-gen-test/Cargo.toml b/apistos-gen-test/Cargo.toml
index a0de214..665afe1 100644
--- a/apistos-gen-test/Cargo.toml
+++ b/apistos-gen-test/Cargo.toml
@@ -20,8 +20,8 @@ assert-json-diff = { workspace = true }
 chrono = { workspace = true, features = ["serde"] }
 futures-core = { workspace = true }
 apistos = { path = "../apistos", features = ["multipart"] }
-apistos-core = { path = "../apistos-core", version = "0.1.2" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.2" }
+apistos-core = { path = "../apistos-core", version = "0.1.3" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.3" }
 schemars = { workspace = true }
 serde = { version = "1.0.188", features = ["derive"] }
 serde_json = { workspace = true }
Repository: netwo-io/apistos
Pull request #56 (2024-03-01 07:38:29)

Prepare v0.1.4 release


Patch:
diff --git a/Cargo.toml b/Cargo.toml
index 6b963fb..4794a1b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,7 @@ documentation = "https://docs.rs/apistos/"
 license = "MIT OR Apache-2.0"
 rust-version = "1.71"
 publish = true
-version = "0.1.3"
+version = "0.1.4"
 
 [workspace.dependencies]
 actix-service = "2"
diff --git a/apistos-core/Cargo.toml b/apistos-core/Cargo.toml
index 04b5026..c4d231a 100644
--- a/apistos-core/Cargo.toml
+++ b/apistos-core/Cargo.toml
@@ -28,13 +28,13 @@ serde_qs = { workspace = true, features = ["actix4"], optional = true }
 uuid = { workspace = true, optional = true }
 url = { workspace = true, optional = true }
 
-apistos-models = { path = "../apistos-models", version = "0.1.3" }
+apistos-models = { path = "../apistos-models", version = "0.1.4" }
 
 [dev-dependencies]
 assert-json-diff = { workspace = true }
 serde_json = { workspace = true }
 
-apistos-models = { path = "../apistos-models", version = "0.1.3", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.4", features = ["deserialize"] }
 
 [lints]
 workspace = true
diff --git a/apistos/Cargo.toml b/apistos/Cargo.toml
index 70b37b0..618e974 100644
--- a/apistos/Cargo.toml
+++ b/apistos/Cargo.toml
@@ -25,12 +25,12 @@ schemars = { workspace = true }
 serde = { workspace = true }
 serde_json = { workspace = true }
 
-apistos-core = { path = "../apistos-core", version = "0.1.3" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.3" }
-apistos-models = { path = "../apistos-models", version = "0.1.3" }
+apistos-core = { path = "../apistos-core", version = "0.1.4" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.4" }
+apistos-models = { path = "../apistos-models", version = "0.1.4" }
 
 [dev-dependencies]
-apistos-models = { path = "../apistos-models", version = "0.1.3", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.4", features = ["deserialize"] }
 
 [lints]
 workspace = true


Test patch:
diff --git a/apistos-gen-test/Cargo.toml b/apistos-gen-test/Cargo.toml
index 665afe1..e26dca1 100644
--- a/apistos-gen-test/Cargo.toml
+++ b/apistos-gen-test/Cargo.toml
@@ -20,8 +20,8 @@ assert-json-diff = { workspace = true }
 chrono = { workspace = true, features = ["serde"] }
 futures-core = { workspace = true }
 apistos = { path = "../apistos", features = ["multipart"] }
-apistos-core = { path = "../apistos-core", version = "0.1.3" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.3" }
+apistos-core = { path = "../apistos-core", version = "0.1.4" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.4" }
 schemars = { workspace = true }
 serde = { version = "1.0.188", features = ["derive"] }
 serde_json = { workspace = true }
Repository: netwo-io/apistos
Pull request #59 (2024-03-04 13:57:52)

Prepare v0.1.5 release


Patch:
diff --git a/Cargo.toml b/Cargo.toml
index 4794a1b..6b35f48 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,7 @@ documentation = "https://docs.rs/apistos/"
 license = "MIT OR Apache-2.0"
 rust-version = "1.71"
 publish = true
-version = "0.1.4"
+version = "0.1.5"
 
 [workspace.dependencies]
 actix-service = "2"
diff --git a/apistos-core/Cargo.toml b/apistos-core/Cargo.toml
index 614d1da..5fd253b 100644
--- a/apistos-core/Cargo.toml
+++ b/apistos-core/Cargo.toml
@@ -28,7 +28,7 @@ serde_qs = { workspace = true, features = ["actix4"], optional = true }
 uuid = { workspace = true, optional = true }
 url = { workspace = true, optional = true }
 
-apistos-models = { path = "../apistos-models", version = "0.1.4", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.5", features = ["deserialize"] }
 
 [dev-dependencies]
 assert-json-diff = { workspace = true }
diff --git a/apistos/Cargo.toml b/apistos/Cargo.toml
index 618e974..ca20351 100644
--- a/apistos/Cargo.toml
+++ b/apistos/Cargo.toml
@@ -25,12 +25,12 @@ schemars = { workspace = true }
 serde = { workspace = true }
 serde_json = { workspace = true }
 
-apistos-core = { path = "../apistos-core", version = "0.1.4" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.4" }
-apistos-models = { path = "../apistos-models", version = "0.1.4" }
+apistos-core = { path = "../apistos-core", version = "0.1.5" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.5" }
+apistos-models = { path = "../apistos-models", version = "0.1.5" }
 
 [dev-dependencies]
-apistos-models = { path = "../apistos-models", version = "0.1.4", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.5", features = ["deserialize"] }
 
 [lints]
 workspace = true


Test patch:
diff --git a/apistos-gen-test/Cargo.toml b/apistos-gen-test/Cargo.toml
index e26dca1..8e54a50 100644
--- a/apistos-gen-test/Cargo.toml
+++ b/apistos-gen-test/Cargo.toml
@@ -20,8 +20,8 @@ assert-json-diff = { workspace = true }
 chrono = { workspace = true, features = ["serde"] }
 futures-core = { workspace = true }
 apistos = { path = "../apistos", features = ["multipart"] }
-apistos-core = { path = "../apistos-core", version = "0.1.4" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.4" }
+apistos-core = { path = "../apistos-core", version = "0.1.5" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.5" }
 schemars = { workspace = true }
 serde = { version = "1.0.188", features = ["derive"] }
 serde_json = { workspace = true }
Repository: netwo-io/apistos
Pull request #62 (2024-03-24 17:34:12)

Prepare v0.1.6 release


Patch:
diff --git a/Cargo.toml b/Cargo.toml
index 6b35f48..ef2a94f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,7 @@ documentation = "https://docs.rs/apistos/"
 license = "MIT OR Apache-2.0"
 rust-version = "1.71"
 publish = true
-version = "0.1.5"
+version = "0.1.6"
 
 [workspace.dependencies]
 actix-service = "2"
diff --git a/apistos-core/Cargo.toml b/apistos-core/Cargo.toml
index 5fd253b..c617c3e 100644
--- a/apistos-core/Cargo.toml
+++ b/apistos-core/Cargo.toml
@@ -28,7 +28,7 @@ serde_qs = { workspace = true, features = ["actix4"], optional = true }
 uuid = { workspace = true, optional = true }
 url = { workspace = true, optional = true }
 
-apistos-models = { path = "../apistos-models", version = "0.1.5", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.6", features = ["deserialize"] }
 
 [dev-dependencies]
 assert-json-diff = { workspace = true }
diff --git a/apistos/Cargo.toml b/apistos/Cargo.toml
index ca20351..c8115a9 100644
--- a/apistos/Cargo.toml
+++ b/apistos/Cargo.toml
@@ -25,12 +25,12 @@ schemars = { workspace = true }
 serde = { workspace = true }
 serde_json = { workspace = true }
 
-apistos-core = { path = "../apistos-core", version = "0.1.5" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.5" }
-apistos-models = { path = "../apistos-models", version = "0.1.5" }
+apistos-core = { path = "../apistos-core", version = "0.1.6" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.6" }
+apistos-models = { path = "../apistos-models", version = "0.1.6" }
 
 [dev-dependencies]
-apistos-models = { path = "../apistos-models", version = "0.1.5", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.6", features = ["deserialize"] }
 
 [lints]
 workspace = true


Test patch:
diff --git a/apistos-gen-test/Cargo.toml b/apistos-gen-test/Cargo.toml
index 8e54a50..b10cf70 100644
--- a/apistos-gen-test/Cargo.toml
+++ b/apistos-gen-test/Cargo.toml
@@ -20,8 +20,8 @@ assert-json-diff = { workspace = true }
 chrono = { workspace = true, features = ["serde"] }
 futures-core = { workspace = true }
 apistos = { path = "../apistos", features = ["multipart"] }
-apistos-core = { path = "../apistos-core", version = "0.1.5" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.5" }
+apistos-core = { path = "../apistos-core", version = "0.1.6" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.6" }
 schemars = { workspace = true }
 serde = { version = "1.0.188", features = ["derive"] }
 serde_json = { workspace = true }
Repository: netwo-io/apistos
Pull request #64 (2024-03-26 10:41:05)

Prepare v0.1.7 release


Patch:
diff --git a/Cargo.toml b/Cargo.toml
index 24d80f0..c7d74ff 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,7 @@ documentation = "https://docs.rs/apistos/"
 license = "MIT OR Apache-2.0"
 rust-version = "1.71"
 publish = true
-version = "0.1.6"
+version = "0.1.7"
 
 [workspace.dependencies]
 actix-service = "2"
diff --git a/apistos-core/Cargo.toml b/apistos-core/Cargo.toml
index c617c3e..3117d27 100644
--- a/apistos-core/Cargo.toml
+++ b/apistos-core/Cargo.toml
@@ -28,7 +28,7 @@ serde_qs = { workspace = true, features = ["actix4"], optional = true }
 uuid = { workspace = true, optional = true }
 url = { workspace = true, optional = true }
 
-apistos-models = { path = "../apistos-models", version = "0.1.6", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.7", features = ["deserialize"] }
 
 [dev-dependencies]
 assert-json-diff = { workspace = true }
diff --git a/apistos/Cargo.toml b/apistos/Cargo.toml
index c8115a9..1a2e3b6 100644
--- a/apistos/Cargo.toml
+++ b/apistos/Cargo.toml
@@ -25,12 +25,12 @@ schemars = { workspace = true }
 serde = { workspace = true }
 serde_json = { workspace = true }
 
-apistos-core = { path = "../apistos-core", version = "0.1.6" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.6" }
-apistos-models = { path = "../apistos-models", version = "0.1.6" }
+apistos-core = { path = "../apistos-core", version = "0.1.7" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.7" }
+apistos-models = { path = "../apistos-models", version = "0.1.7" }
 
 [dev-dependencies]
-apistos-models = { path = "../apistos-models", version = "0.1.6", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.1.7", features = ["deserialize"] }
 
 [lints]
 workspace = true


Test patch:
diff --git a/apistos-gen-test/Cargo.toml b/apistos-gen-test/Cargo.toml
index 04bd83d..caf48e1 100644
--- a/apistos-gen-test/Cargo.toml
+++ b/apistos-gen-test/Cargo.toml
@@ -20,8 +20,8 @@ assert-json-diff = { workspace = true }
 chrono = { workspace = true, features = ["serde"] }
 futures-core = { workspace = true }
 apistos = { path = "../apistos", features = ["multipart", "uuid"] }
-apistos-core = { path = "../apistos-core", version = "0.1.6" }
-apistos-gen = { path = "../apistos-gen", version = "0.1.6" }
+apistos-core = { path = "../apistos-core", version = "0.1.7" }
+apistos-gen = { path = "../apistos-gen", version = "0.1.7" }
 schemars = { workspace = true }
 serde = { version = "1.0.188", features = ["derive"] }
 serde_json = { workspace = true }
Repository: netwo-io/apistos
Pull request #96 (2024-06-22 16:33:07)

Fix Resource wrap function
Fix wrap function in Resource and add a test to prevent regression.


Patch:
diff --git a/apistos/src/internal/definition_holder.rs b/apistos/src/internal/definition_holder.rs
index 0f7eb3d..ff443e7 100644
--- a/apistos/src/internal/definition_holder.rs
+++ b/apistos/src/internal/definition_holder.rs
@@ -34,7 +34,7 @@ impl DefinitionHolder for RouteWrapper {
   }
 }
 
-impl DefinitionHolder for Resource {
+impl<T> DefinitionHolder for Resource<T> {
   fn path(&self) -> &str {
     &self.path
   }


Test patch:
diff --git a/apistos/tests/routing.rs b/apistos/tests/routing.rs
new file mode 100644
index 0000000..f3cb1bd
--- /dev/null
+++ b/apistos/tests/routing.rs
@@ -0,0 +1,86 @@
+use actix_web::middleware::Logger;
+use actix_web::web::{Json, Path};
+use actix_web::{App, Error};
+
+use apistos::app::OpenApiWrapper;
+use apistos::spec::Spec;
+use apistos::web::{delete, get, patch, post, put, resource, scope, tagged_resource, tagged_scope, ServiceConfig};
+use apistos_gen::api_operation;
+use apistos_models::info::Info;
+use apistos_models::tag::Tag;
+
+#[test]
+fn actix_routing() {
+  fn my_routes(cfg: &mut ServiceConfig) {
+    cfg.service(
+      resource("/users/{user_id}")
+        .route(delete().to(test))
+        .wrap(Logger::default()),
+    );
+  }
+
+  #[api_operation(tag = "pet")]
+  pub(crate) async fn test(_params: Path<(u32, String)>) -> Result<Json<()>, Error> {
+    Ok(Json(()))
+  }
+
+  let info = Info {
+    title: "A well documented API".to_string(),
+    description: Some("Really well document I mean it".to_string()),
+    terms_of_service: Some("https://terms.com".to_string()),
+    ..Default::default()
+  };
+  let tags = vec![
+    Tag {
+      name: "pet".to_owned(),
+      ..Default::default()
+    },
+    Tag {
+      name: "A super tag".to_owned(),
+      ..Default::default()
+    },
+    Tag {
+      name: "Another super tag".to_owned(),
+      ..Default::default()
+    },
+  ];
+  let spec = Spec {
+    info: info.clone(),
+    tags: tags.clone(),
+    ..Default::default()
+  };
+
+  App::new()
+    .document(spec)
+    .service(
+      scope("test")
+        .service(resource("/{plop_id}/{clap_name}").route(get().to(test)))
+        .service(tagged_resource("/line/{plop_id}", vec!["A super tag".to_string()]).route(put().to(test)))
+        .service(
+          tagged_scope("test2", vec!["Another super tag".to_string()]).service(resource("/").route(post().to(test))),
+        )
+        .route("test3", patch().to(test))
+        .app_data("")
+        .configure(my_routes),
+    )
+    .build("/openapi.json");
+}
+
+// Imports bellow aim at making clippy happy. Those dependencies are necessary for integration-test.
+use actix_service as _;
+use actix_web_lab as _;
+use apistos_core as _;
+use apistos_plugins as _;
+use apistos_rapidoc as _;
+use apistos_redoc as _;
+use apistos_scalar as _;
+use apistos_swagger_ui as _;
+use garde_actix_web as _;
+use indexmap as _;
+use log as _;
+use md5 as _;
+use once_cell as _;
+use regex as _;
+use schemars as _;
+use serde as _;
+use serde_json as _;