From 68ce9dea7ecc9e7af2ac2b43911d4f19f7fd8768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20=C3=85berg?= Date: Wed, 12 Oct 2016 21:49:27 +0200 Subject: [PATCH] fixed dialyser error 'no local return' then definition includes an array (#80) * fixed dialyser error 'no local return' then definition includes an array * fixed indentation --- src/cowboy_swagger.erl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/cowboy_swagger.erl b/src/cowboy_swagger.erl index 412e996..2dd6521 100644 --- a/src/cowboy_swagger.erl +++ b/src/cowboy_swagger.erl @@ -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()