Skip to content

Commit

Permalink
Merge pull request #9 from pinx/master
Browse files Browse the repository at this point in the history
Fix warnings, introduced by Elixir 1.4
  • Loading branch information
msawka authored Apr 13, 2017
2 parents e4f95be + 1cc8538 commit 9512a1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/mix/tasks/swagger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ defmodule Mix.Tasks.Swagger do
"""
@spec default_responses(String.t, any) :: map
def default_responses(verb_string, response_schema \\ nil) do
responses = %{
%{
"404" => %{"description" => "Resource not found"},
"401" => %{"description" => "Request is not authorized"},
"500" => %{"description" => "Internal Server Error"} }
Expand Down
6 changes: 3 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ defmodule SwaggerDoc.Mixfile do
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
description: description,
package: package,
deps: deps(),
description: description(),
package: package(),
docs: [
readme: "README.md",
main: "README",
Expand Down
8 changes: 4 additions & 4 deletions test/mix/tasks/swagger_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Mocks.UserModel do
field :bio, :string
field :number_of_pets, :integer

timestamps
timestamps()
end
end

Expand All @@ -29,7 +29,7 @@ defmodule Mocks.UserRequiredModel do
field :bio, :string
field :number_of_pets, :integer

timestamps
timestamps()
end

@required_fields ~w(name email)a
Expand Down Expand Up @@ -74,13 +74,13 @@ defmodule Mix.Tasks.Swagger.Tests do
end

setup do
reset_swagger_env
reset_swagger_env()
:ok
end

setup_all do
on_exit fn ->
reset_swagger_env
reset_swagger_env()
end
:ok
end
Expand Down

0 comments on commit 9512a1f

Please sign in to comment.