Skip to content

Commit

Permalink
fixed dialyser error 'no local return' then definition includes an ar…
Browse files Browse the repository at this point in the history
…ray (#80) (#1)

* fixed dialyser error 'no local return' then definition includes an array

* fixed indentation
  • Loading branch information
freke committed Oct 12, 2016
1 parent 29ee8a1 commit ca052e0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/cowboy_swagger.erl
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
-export_type([response_obj/0, responses_definitions/0]).

-type parameter_definition_name () :: binary().
-type property_obj() ::
#{binary() =>
#{ type => binary()
, description => binary()
, example => binary()
}}.
-type property_desc() ::
#{ type => binary()
, description => binary()
, example => binary()
, items => property_desc()
}.
-type property_obj() :: #{binary() => property_desc()}.
-type parameters_definitions() ::
#{parameter_definition_name() =>
#{ type => binary()
Expand Down

0 comments on commit ca052e0

Please sign in to comment.