Skip to content

Commit

Permalink
Merge pull request #144 from richcarl/normalizing-bug
Browse files Browse the repository at this point in the history
Fix map key that should have been binary
  • Loading branch information
elbrujohalcon committed Oct 20, 2022
2 parents 0c45030 + 3124f22 commit cce5c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cowboy_swagger.erl
Expand Up @@ -364,7 +364,7 @@ validate_swagger_map_params(Params) ->
fun(E) ->
case maps:get(<<"name">>, E, undefined) of
undefined -> maps:is_key(<<"$ref">>, E);
_ -> {true, E#{in => maps:get(<<"in">>, E, <<"path">>)}}
_ -> {true, E#{<<"in">> => maps:get(<<"in">>, E, <<"path">>)}}
end
end,
lists:filtermap(ValidateParams, Params).
Expand Down

0 comments on commit cce5c04

Please sign in to comment.