preaction / Yancy

The Best Web Framework Deserves the Best Content Management System
http://preaction.me/yancy/
Other
54 stars 21 forks source link

Invalid JSON specification HASH(0x...) - /info/version: Expected string - got number #111

Closed eserte closed 4 years ago

eserte commented 4 years ago

The test suite started to fail on my smokers:

Invalid JSON specification HASH(0x8041a0810)
- /info/version: Expected string - got number. at /usr/perl5.28.1Dp/lib/site_perl/5.28.1/JSON/Validator.pm line 165.
    JSON::Validator::load_and_validate_schema(JSON::Validator::OpenAPI::Mojolicious=HASH(0x8041a26d8), HASH(0x8041a0810), HASH(0x8041a2840)) called at /usr/perl5.28.1Dp/lib/site_perl/5.28.1/JSON/Validator/OpenAPI/Mojolicious.pm line 39
    JSON::Validator::OpenAPI::Mojolicious::load_and_validate_schema(JSON::Validator::OpenAPI::Mojolicious=HASH(0x8041a26d8), HASH(0x8041a0810), HASH(0x8041a2840)) called at /usr/perl5.28.1Dp/lib/site_perl/5.28.1/Mojolicious/Plugin/OpenAPI.pm line 35
    Mojolicious::Plugin::OpenAPI::register(Mojolicious::Plugin::OpenAPI=HASH(0x8041a2828), Yancy=HASH(0x803fbb558), HASH(0x8041a2558)) called at /usr/perl5.28.1Dp/lib/site_perl/5.28.1/Mojolicious/Plugins.pm line 45
...
    Yancy::startup(Yancy=HASH(0x803fbb558)) called at /usr/perl5.28.1Dp/lib/site_perl/5.28.1/Mojolicious.pm line 173
    Mojolicious::new("Yancy", HASH(0x803fbb930)) called at /usr/perl5.28.1Dp/lib/site_perl/5.28.1/Mojo/Server.pm line 17
    Mojo::Server::build_app(Mojo::Server=HASH(0x803fbb858), "Yancy", HASH(0x803fbb930)) called at /usr/perl5.28.1Dp/lib/site_perl/5.28.1/Test/Mojo.pm line 265
    Test::Mojo::new("Test::Mojo", "Yancy", HASH(0x803fbbb28)) called at t/api.t line 65
t/api.t ...................... 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
... (etc) ...

Possibly related to newer Mojolicious::Plugin::OpenAPI and/or JSON::Validator versions.