cious plugin providing access to an OpenAPI document and parser
# KEYWORDS: validation evaluation JSON Schema OpenAPI Swagger HTTP request response
our $VERSION = '0.019';
use 5.020;
use utf8;
use i
us::Plugin', -signatures;
use Feature::Compat::Try;
use YAML::PP;
use Path::Tiny;
use Mojo::JSON 'decode_json';
use Safe::Isa;
use OpenAPI::Modern 0.100;
use namespace::clean;
# we store data in two
= YAML::PP->new(boolean => 'JSON::PP')->load_file($config->{document_filename}),
}
elsif ($config->{document_filename} =~ /\.json$/) {
$schema = decode_json(path($config->{document_file