From 48cff22f646809697b58ac07e2fb73452cdd82da Mon Sep 17 00:00:00 2001 From: krynju Date: Wed, 23 Sep 2026 13:12:49 +0200 Subject: [PATCH 1/2] fix(deps): drop unused MbedTLS dependency `src/client.jl` imported MbedTLS but never used it. Remove the import, the `[deps]` entry and its compat bound, and bump to 0.2.10. Co-Authored-By: Claude Opus 5.5 (1M context) --- Project.toml | 4 +--- src/client.jl | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index c753c79..a696a2a 100644 --- a/Project.toml +++ b/Project.toml @@ -4,7 +4,7 @@ keywords = ["Swagger", "OpenAPI", "REST"] license = "MIT" desc = "OpenAPI server and client helper for Julia" authors = ["JuliaHub Inc."] -version = "0.2.9" +version = "0.2.10" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" @@ -14,7 +14,6 @@ HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3" JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" LibCURL = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21" MIMEs = "6c6e2e6c-3030-632d-7369-2d6c69616d65" -MbedTLS = "739be429-bea8-5141-9913-cc70e7f3736d" TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53" URIs = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4" p7zip_jll = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0" @@ -25,7 +24,6 @@ HTTP = "1, 2" JSON = "0.20, 0.21, 1" LibCURL = "0.6, 1" MIMEs = "0.1, 1" -MbedTLS = "0.6.8, 0.7, 1" TimeZones = "1" URIs = "1.3" julia = "1.6" diff --git a/src/client.jl b/src/client.jl index 20b88c2..9a05716 100644 --- a/src/client.jl +++ b/src/client.jl @@ -3,7 +3,6 @@ module Clients using Downloads using URIs using JSON -using MbedTLS using Dates using TimeZones using LibCURL From 30dc0f7209378443f737bc3b420ff593216866f3 Mon Sep 17 00:00:00 2001 From: krynju Date: Wed, 23 Sep 2026 13:47:56 +0200 Subject: [PATCH 2/2] test: accept String response bodies in test_http_resp HTTP.jl 2.7 keeps a `String` body as-is in `HTTP.Response(status, body)`, so `copy(resp.body)` throws a MethodError. Only copy when the body is a byte vector. Co-Authored-By: Claude Opus 5.5 (1M context) --- test/client/allany/runtests.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/client/allany/runtests.jl b/test/client/allany/runtests.jl index bd8cd88..1e7f78e 100644 --- a/test/client/allany/runtests.jl +++ b/test/client/allany/runtests.jl @@ -179,7 +179,8 @@ function test_http_resp() @test resp.status == 200 @test resp.headers == ["Content-Type" => "application/json"] - json = JSON.parse(String(copy(resp.body))) + body = resp.body isa AbstractString ? resp.body : String(copy(resp.body)) + json = JSON.parse(body) @test pet_equals(OpenAPI.Clients.from_json(M.Dog, json), dog) end