Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vdayanand committed Jul 4, 2024
1 parent 8fa6795 commit 92dce9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/param_serialize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ using OpenAPI: convert_dicts_to_arrays
@test deserialize_deep_object(query_string) == expected
end

@testset "convert_dicts_to_arrays" begin
example = Dict("a" => Dict("b" => "value1", "c" => Dict("0"=>"value2", "1"=>"value3")))
@test convert_dicts_to_arrays(example) == example
@test convert_dicts_to_arrays(example["a"]["c"]) == ["value2", "value3"]
end

@testset "Blank values" begin
query_string = Dict("a[b]"=>"", "a[c]"=>"")
expected = Dict("a" => Dict("b" => "", "c" => ""))
Expand Down

0 comments on commit 92dce9c

Please sign in to comment.