Comments (6)
Are you running the latest? It was not working in 0.49, but should work in 0.50.
from json-validator.
Yes seems I am using the latest.
berov@u165:~/opt/private_dev/api$ perl -MJSON::Validator -MSwagger2 -E 'say JSON::Validator->VERSION .",". Swagger2->VERSION'
0.50,0.49
berov@u165:~/opt/private_dev/api$ morbo -w lib/ -l http://[::]:5000 bin/api
Server available at http://[::]:5000
This module is replaced by JSON::Validator. at /home/berov/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/Swagger2/SchemaValidator.pm line 17, <DATA> line 2231.
Can't load application from file "/home/berov/opt/private_dev/api/bin/api": Could not load document from lib/API/etc/APIs/definitions.yaml#/definitions/Error: Can't open file "lib/API/etc/APIs/definitions.yaml#/definitions/Error": No such file or directory at /home/berov/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/JSON/Validator.pm line 341.
Compilation failed in require at (eval 48) line 1, <DATA> line 2231.
from json-validator.
Thanks! Sorry for the inconvenience. Been busy in meetings all day.
from json-validator.
Also, I've released Swagger2 (0.50) which doesn't have that awful "replaced" warning.
from json-validator.
After running
cpanm https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/JSON-Validator-0.51.tar.gz
problem disappeared.
After pulling from upstream (your swagger2 project) warning disappeared too.
Thanks a lot!
from json-validator.
from json-validator.
Related Issues (20)
- Incorrect behaviour when extra object properties present HOT 2
- Is JSON::Validator allows to use nullable and oneOf keyword?
- t/-keyword-draft*.t fail with newer Mojolicious HOT 2
- Incorrect validation error paths when validating references to same object HOT 1
- Upgrading Test::JSON::Schema::Acceptance from 1.005 to 1.006 causes t/draft2019-09-acceptance.t to fail HOT 1
- Feature request: caching validated output HOT 19
- Implement skipped acceptance tests
- Remove coerce() and just coerce everything HOT 1
- Missing compile step when using JSON::Validator::Joi->array HOT 1
- Set min perl version to 5.016 HOT 1
- Lots of warnings when processing Accept header HOT 2
- OpenAPI 'oneOf' in parameter not validating correctly HOT 2
- Many bogus OpenAPI schema errors if coerce "defaults" is turned on. HOT 4
- validation fails on an attribute that has nullable: true if there is also an enum HOT 3
- Installing before YAML::XS is available doesn't allow YAML::XS to be installed as a prerequisite. HOT 6
- Possibly leftover directory .pls_cache in tarball HOT 1
- Wide character in subroutine entry HOT 3
- $ref are not resolved with get method HOT 3
- t/load-from-app.t fails with restrictive firewall HOT 2
- OpenAPIV3 - minimum/maximum being read incorrectly as numbers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-validator.