APISchema

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

1.03 2015-10-06T07:25:49Z
    - Determine the status code from the detail of failure (aereal++)

1.02 2015-10-06T07:12:24Z
    - Prettify the output of examples (aereal++)

1.01 2015-09-04T09:32:37Z
    - Recognize HTTP PATCH method (aereal++)

1.00 2015-08-27T10:48:03Z
    - Support schema which contains unicode characters
    - Enable `use utf8` in DSL file

0.03 2015-08-18T02:06:45Z
    - Validation error has more details. expected: expected schema, actual: actual input data

0.02 2015-03-16T02:35:36Z
    - Add a status_code parameter to P::MW::AS::RequestValidator

0.01 2015-02-18T10:41:05Z

t/APISchema-DSL.t  view on Meta::CPAN

        };
    };

    dies_ok {
        my $schema = APISchema::DSL::process {
            include 't/fixtures/runtime-error.def';
        };
    };
}

sub with_unicode : Tests {
    my $schema = APISchema::DSL::process {
        include 't/fixtures/user.def';
    };

    isa_ok $schema, 'APISchema::Schema';

    is $schema->title, decode_utf8('ユーザー');
    is $schema->description, decode_utf8('ユーザーの定義');

    cmp_deeply $schema->get_resource_by_name('user')->{definition}, {



( run in 0.289 second using v1.01-cache-2.11-cpan-4e96b696675 )