Skip to content

Commit cce5c04

Browse files
Merge pull request #144 from richcarl/normalizing-bug
Fix map key that should have been binary
2 parents 0c45030 + 3124f22 commit cce5c04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cowboy_swagger.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ validate_swagger_map_params(Params) ->
364364
fun(E) ->
365365
case maps:get(<<"name">>, E, undefined) of
366366
undefined -> maps:is_key(<<"$ref">>, E);
367-
_ -> {true, E#{in => maps:get(<<"in">>, E, <<"path">>)}}
367+
_ -> {true, E#{<<"in">> => maps:get(<<"in">>, E, <<"path">>)}}
368368
end
369369
end,
370370
lists:filtermap(ValidateParams, Params).

0 commit comments

Comments
 (0)