OpenAPI-Modern

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "JSON::Schema::Modern::Utilities" : "0",
            "JSON::Schema::Modern::Vocabulary" : "0",
            "List::Util" : "0",
            "Math::BigInt" : "1.999701",
            "Mojo::Message::Request" : "0",
            "Mojo::Message::Response" : "0",
            "Mojo::Util" : "0",
            "Moo" : "0",
            "MooX::TypeTiny" : "0.002002",
            "Path::Tiny" : "0",
            "Ref::Util" : "0",
            "Safe::Isa" : "0",
            "Scalar::Util" : "0",
            "Storable" : "0",
            "Types::Standard" : "0",
            "autovivification" : "0",
            "builtin::compat" : "0",
            "constant" : "0",
            "experimental" : "0",
            "feature" : "0",
            "if" : "0",

META.json  view on Meta::CPAN

            "Class::XSAccessor" : "0",
            "Cpanel::JSON::XS" : "0",
            "HTTP::Headers" : "6.07",
            "HTTP::Headers::Fast" : "0.21",
            "HTTP::Message::PSGI" : "0",
            "HTTP::Request" : "0",
            "HTTP::Response" : "0",
            "HTTP::Status" : "0",
            "Plack::Request" : "1.0043",
            "Plack::Response" : "0",
            "Ref::Util::XS" : "0",
            "Type::Tiny" : "0.045_03",
            "Type::Tiny::XS" : "0",
            "URI" : "0"
         }
      },
      "test" : {
         "recommends" : {
            "CPAN::Meta" : "2.120900"
         },
         "requires" : {

META.yml  view on Meta::CPAN

  JSON::Schema::Modern::Utilities: '0'
  JSON::Schema::Modern::Vocabulary: '0'
  List::Util: '0'
  Math::BigInt: '1.999701'
  Mojo::Message::Request: '0'
  Mojo::Message::Response: '0'
  Mojo::Util: '0'
  Moo: '0'
  MooX::TypeTiny: '0.002002'
  Path::Tiny: '0'
  Ref::Util: '0'
  Safe::Isa: '0'
  Scalar::Util: '0'
  Storable: '0'
  Types::Standard: '0'
  autovivification: '0'
  builtin::compat: '0'
  constant: '0'
  experimental: '0'
  feature: '0'
  if: '0'

dist.ini  view on Meta::CPAN

dir = share

[Prereqs / RuntimeRequires]
JSON::Schema::Modern = 0.603  ; THAW, FREEZE fixes; recommended_response default
JSON::Schema::Modern::Document = 0.608  ; original_uri now exists separately from canonical_uri

[Prereqs / RuntimeSuggests]
Class::XSAccessor = 0
Type::Tiny = 0.045_03   ; automatically loads Type::Tiny::XS when already installed
Type::Tiny::XS = 0
Ref::Util::XS = 0       ; automatically installed by Ref::Util when possible
Cpanel::JSON::XS = 0
HTTP::Request = 0
HTTP::Response = 0
HTTP::Status = 0
URI = 0
Plack::Request = 1.0043       ; RT#159140 (HTTP::Headers::Fast::XS)
Plack::Response = 0
HTTP::Headers::Fast = 0.21    ; flatten -> psgi_flatten
HTTP::Message::PSGI = 0
Catalyst::Request = 0

lib/JSON/Schema/Modern/Document/OpenAPI.pm  view on Meta::CPAN

no if "$]" >= 5.041009, feature => 'smartmatch';
no feature 'switch';
use JSON::Schema::Modern::Utilities qw(E canonical_uri jsonp is_equal);
use Carp 'croak';
use Safe::Isa;
use Digest::MD5 'md5_hex';
use Storable 'dclone';
use File::ShareDir 'dist_dir';
use Path::Tiny;
use List::Util 'pairs';
use Ref::Util 'is_plain_hashref';
use MooX::TypeTiny 0.002002;
use Types::Standard qw(InstanceOf HashRef Str Enum);
use namespace::clean;

extends 'JSON::Schema::Modern::Document';

# schema files to add by default
# these are also available as URIs with 'latest' instead of the timestamp.
use constant DEFAULT_SCHEMAS => [
  'oas/dialect/base.schema.json', # metaschema for json schemas contained within openapi documents

lib/OpenAPI/Modern.pm  view on Meta::CPAN

use experimental 'signatures';
no autovivification warn => qw(fetch store exists delete);
use if "$]" >= 5.022, experimental => 're_strict';
no if "$]" >= 5.031009, feature => 'indirect';
no if "$]" >= 5.033001, feature => 'multidimensional';
no if "$]" >= 5.033006, feature => 'bareword_filehandles';
no if "$]" >= 5.041009, feature => 'smartmatch';
no feature 'switch';
use Carp 'croak';
use Safe::Isa;
use Ref::Util qw(is_plain_hashref is_plain_arrayref is_ref);
use List::Util qw(first pairs none);
use Scalar::Util 'looks_like_number';
use builtin::compat 'indexed';
use Feature::Compat::Try;
use Encode 2.89 ();
use JSON::Schema::Modern;
use JSON::Schema::Modern::Utilities qw(jsonp unjsonp canonical_uri E abort is_equal is_elements_unique);
use JSON::Schema::Modern::Document::OpenAPI;
use MooX::TypeTiny 0.002002;
use Types::Standard qw(InstanceOf Bool);

t/00-report-prereqs.dd  view on Meta::CPAN

                                      'JSON::Schema::Modern::Utilities' => '0',
                                      'JSON::Schema::Modern::Vocabulary' => '0',
                                      'List::Util' => '0',
                                      'Math::BigInt' => '1.999701',
                                      'Mojo::Message::Request' => '0',
                                      'Mojo::Message::Response' => '0',
                                      'Mojo::Util' => '0',
                                      'Moo' => '0',
                                      'MooX::TypeTiny' => '0.002002',
                                      'Path::Tiny' => '0',
                                      'Ref::Util' => '0',
                                      'Safe::Isa' => '0',
                                      'Scalar::Util' => '0',
                                      'Storable' => '0',
                                      'Types::Standard' => '0',
                                      'autovivification' => '0',
                                      'builtin::compat' => '0',
                                      'constant' => '0',
                                      'experimental' => '0',
                                      'feature' => '0',
                                      'if' => '0',

t/00-report-prereqs.dd  view on Meta::CPAN

                                      'Class::XSAccessor' => '0',
                                      'Cpanel::JSON::XS' => '0',
                                      'HTTP::Headers' => '6.07',
                                      'HTTP::Headers::Fast' => '0.21',
                                      'HTTP::Message::PSGI' => '0',
                                      'HTTP::Request' => '0',
                                      'HTTP::Response' => '0',
                                      'HTTP::Status' => '0',
                                      'Plack::Request' => '1.0043',
                                      'Plack::Response' => '0',
                                      'Ref::Util::XS' => '0',
                                      'Type::Tiny' => '0.045_03',
                                      'Type::Tiny::XS' => '0',
                                      'URI' => '0'
                                    }
                    },
       'test' => {
                   'recommends' => {
                                     'CPAN::Meta' => '2.120900'
                                   },
                   'requires' => {

t/lib/Helper.pm  view on Meta::CPAN

use if "$]" >= 5.022, experimental => 're_strict';
no if "$]" >= 5.031009, feature => 'indirect';
no if "$]" >= 5.033001, feature => 'multidimensional';
no if "$]" >= 5.033006, feature => 'bareword_filehandles';
no if "$]" >= 5.041009, feature => 'smartmatch';
no feature 'switch';
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8

use Safe::Isa;
use List::Util 'pairs';
use Ref::Util 'is_hashref';
use Mojo::Message::Request;
use Mojo::Message::Response;
use Test2::API 'context_do';
use Test2::Tools::Exception 'lives';
use Test::Needs;
use Test::More 0.96;
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
use Test::Deep; # import symbols: ignore, re etc
use JSON::Schema::Modern::Document::OpenAPI;
use OpenAPI::Modern;



( run in 0.279 second using v1.01-cache-2.11-cpan-4d50c553e7e )