diff options
Diffstat (limited to '')
-rw-r--r-- | lib/Net/HTTP/API/Meta/Method/APIDeclare.pm | 2 | ||||
-rw-r--r-- | t/lib/TestAPI.pm | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/Net/HTTP/API/Meta/Method/APIDeclare.pm b/lib/Net/HTTP/API/Meta/Method/APIDeclare.pm index df5a91b..0c9489a 100644 --- a/lib/Net/HTTP/API/Meta/Method/APIDeclare.pm +++ b/lib/Net/HTTP/API/Meta/Method/APIDeclare.pm @@ -19,7 +19,7 @@ my @accepted_options = qw/ has api_options => ( is => 'ro', traits => ['Hash'], - isa => 'HashRef[Str|CodeRef]', + isa => 'HashRef[Str|CodeRef|HashRef]', default => sub { {} }, lazy => 1, handles => { diff --git a/t/lib/TestAPI.pm b/t/lib/TestAPI.pm index ea770e9..4f7873e 100644 --- a/t/lib/TestAPI.pm +++ b/t/lib/TestAPI.pm @@ -4,8 +4,9 @@ use Net::HTTP::API; use HTTP::Response; net_api_declare fake_api => ( - api_base_url => 'http://exemple.com', - format => 'json', + api_base_url => 'http://exemple.com', + format => 'json', + format_options => { utf8 => 1, } ); net_api_method users => ( |