Skip to content

Commit ec18864

Browse files
giordanojuliohm
andauthored
Allow JSON v1 (#67)
* Allow JSON v1 * Update compat entries * Update tests for JSON.jl v1 --------- Co-authored-by: Júlio Hoffimann <julio.hoffimann@gmail.com>
1 parent 8d51dbb commit ec18864

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "CDSAPI"
22
uuid = "8a7b9de3-9c00-473e-88b4-7eccd7ef2fea"
33
authors = ["Micky Yun Chan <michan@redhat.com> and contributors"]
4-
version = "2.2.1"
4+
version = "2.2.2"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
@@ -12,8 +12,8 @@ ScopedValues = "7e506255-f358-4e82-b7e4-beb19740aa63"
1212
[compat]
1313
Dates = "1.10"
1414
HTTP = "1"
15-
JSON = "0.21"
16-
ScopedValues = "1.3.0"
15+
JSON = "1"
16+
ScopedValues = "1.3"
1717
julia = "1.10"
1818

1919
[extras]
@@ -23,4 +23,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2323
ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea"
2424

2525
[targets]
26-
test = ["Test", "GRIB", "ZipFile", "NetCDF"]
26+
test = ["Test", "GRIB", "NetCDF", "ZipFile"]

test/runtests.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using CDSAPI
2-
using ZipFile
32
using GRIB, NetCDF
3+
using ZipFile
4+
using JSON
45

56
using Test
67

@@ -24,7 +25,7 @@ datadir = joinpath(@__DIR__, "data")
2425
filename
2526
)
2627

27-
@test typeof(response) <: Dict
28+
@test typeof(response) <: JSON.Object
2829
@test isfile(filename)
2930

3031
GribFile(filename) do datafile
@@ -54,7 +55,7 @@ datadir = joinpath(@__DIR__, "data")
5455
filename
5556
)
5657

57-
@test typeof(response) <: Dict
58+
@test typeof(response) <: JSON.Object
5859
@test isfile(filename)
5960

6061
# extract contents

0 commit comments

Comments
 (0)