Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
1 change: 0 additions & 1 deletion src/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module Clients
using Downloads
using URIs
using JSON
using MbedTLS
using Dates
using TimeZones
using LibCURL
Expand Down
3 changes: 2 additions & 1 deletion test/client/allany/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading