You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the schema file is absolute, the error message is unexpected:
use JSON::Validator;
my $v = JSON::Validator->new;
$v = $v->load_and_validate_schema("/none");
__END__
Can't call method "server" on an undefined value at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/Server/Daemon.pm line 55.
Expected behavior
If the file is relative, the error message is as expected:
use JSON::Validator;
my $v = JSON::Validator->new;
$v = $v->load_and_validate_schema("none");
__END__
Unable to load schema none at /usr/lib/perl5/vendor_perl/5.26.1/JSON/Validator/Store.pm line 47.
This happens since version 4.10. 4.09 is ok.
The text was updated successfully, but these errors were encountered:
- Add JSON::Validator::Schema::OpenAPIv2
* Extends JSON::Validator::Schema::Draft4
* Can validate OpenAPIv2 API specifiation
* Can validate HTTP request and response
* Can validate "Accept" and "Content-Type"
* Can handle "discriminator"
* Can handle "readOnly" parameters
* Can handle collectionFormat
* Can handle default values for parameters
* Can convert specifiation with invalid "$ref" into a valid OpenAPIv2 specifiation
* Will coerce query parameters and headers into arrays if needed
- Add JSON::Validator::Schema::OpenAPIv3
* Extends JSON::Validator::Schema::Draft201909
* Can validate OpenAPIv3 API specifiation
* Can validate HTTP request and response
* Can validate "Accept" and "Content-Type"
* Can handle "discriminator"
* Can handle "nullable" parameters
* Can handle "readOnly" parameters
* Can handle "style" and "explode" for arrays and objects parameters
* Can handle "writeOnly" parameters
* Can handle default values for parameters
* Will coerce query parameters and headers into arrays if needed
- Add negotiate_content_type() utility function
- Fix t/load-file.t on Windows #234
- Fix not checking if input schema is a file if it has a newline #223#233
Contributor: David Cantrell
- Improved error message when loading non-existing file #231
Steps to reproduce the behavior
If the schema file is absolute, the error message is unexpected:
Expected behavior
If the file is relative, the error message is as expected:
This happens since version 4.10. 4.09 is ok.
The text was updated successfully, but these errors were encountered: