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()