We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To reproduce, create test.js somewhere:
test.js
var parser = require( 'json-schema-ref-parser' ); var path = require( 'path' ); parser.dereference( path.join( __dirname, 'test.yaml' ) );
Running test.js from cmd in working directory C:\ fails, running in C:\Users behaves correctly:
cmd
C:\
C:\Users
C:\>node C:\Users\me\workspace\json-schema-ref-parser-bug-cwd-c\test.js (node:8048) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec tion id: 5): SyntaxError: Unable to resolve $ref pointer "c:///Users/me/ workspace/json-schema-ref-parser-bug-cwd-c/test.yaml" C:\>cd Users C:\Users>node C:\Users\me\workspace\json-schema-ref-parser-bug-cwd-c\tes t.js (node:9092) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec tion id: 4): SyntaxError: "c:/Users/me/workspace/json-schema-ref-parser- bug-cwd-c/test.yaml" is not a valid JSON Schema
The text was updated successfully, but these errors were encountered:
Oh wow, thanks! Good catch! I'll get this fixed
Sorry, something went wrong.
No branches or pull requests
To reproduce, create
test.js
somewhere:Running
test.js
fromcmd
in working directoryC:\
fails, running inC:\Users
behaves correctly:The text was updated successfully, but these errors were encountered: