-
Notifications
You must be signed in to change notification settings - Fork 95
readFromJsonFile not working? #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting, I will look into this. Just to confirm, when I try to load the JSON file you specify I get that error:
is this the same error you are seeing? |
Yes, also I just noticed a typo in the readme: |
seems their spec has some interesting constructs.
both cause multiple issues when loading and validating the spec. |
This should be fixed by #30, thanks for reporting! The spec you linked showed off a lot of issues that existed in the code. Should work much better now. |
I used the code from readme file but it's not working. code:
`require DIR . '/vendor/autoload.php';
use cebe\openapi\Reader;
// realpath is needed for resolving references with relative Paths or URLs
$openapi = Reader::readFromJsonFile(realpath('shootproof-studio-openapi.json'));`
Using this json file:
https://developer.shootproof.com/oas/studio.json
The text was updated successfully, but these errors were encountered: