Skip to content

Commit

Permalink
Update lib/mix/tasks/openapi.spec.json.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Buhot <m.buhot@gmail.com>
  • Loading branch information
zorbash and mbuhot authored Mar 23, 2022
1 parent 86f41b9 commit a2230f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mix/tasks/openapi.spec.json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ defmodule Mix.Tasks.Openapi.Spec.Json do

json_encoding_result = spec
|> OpenApiSpex.OpenApi.to_map(vendor_extensions: vendor_extensions)
|> OpenApiSpex.OpenApi.json_encoder().encode(pretty: pretty)
|> json_encoder.encode(pretty: pretty)

case json_encoding_result do
{:ok, json} ->
Expand Down

0 comments on commit a2230f5

Please sign in to comment.