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
On windows machines the underlying json-schema-ref-parser fails to correctly resolve resources but has been addressed in APIDevTools/json-schema-ref-parser#315. Updating the json-schema-ref-parser to version 11.1.0 corrects this issue. #639 resolves this.
with a file named "api.json" 2 directories up the following code throws the below error on windows but works as expected on MacOS and Linux
api = new OpenAPIBackend({
definition: `file://${path.resolve(__dirname, '..', '..', 'api.json')}`, quick: true, handlers: {}
})
api.init()
ENOENT: no such file or directory, open 'C:\dev\project\project-maa-s\lambda\dataset\node_modules\@apidevtools\json-schema-ref-parser\dist\C:\dev\project\project-maa-s\lambda\dataset\api.json'
at Object.<anonymous> (C:\dev\project\project-maa-s\lambda\dataset\node_modules\@apidevtools\json-schema-ref-parser\dist\lib\resolvers\file.js:72:23)
at Generator.throw (<anonymous>)
at rejected (C:\dev\project\project-maa-s\lambda\dataset\node_modules\@apidevtools\json-schema-ref-parser\dist\lib\resolvers\file.js:29:65) {
code: 'ERESOLVER',
name: 'ResolverError',
source: 'C:\\dev\\project\\project-maa-s\\lambda\\dataset\\node_modules\\@apidevtools\\json-schema-ref-parser\\dist\\C:\\dev\\project\\project-maa-s\\lambda\\dataset\\api.json',
path: null,
toJSON: [Function: toJSON],
ioErrorCode: 'ENOENT',
[Symbol(nodejs.util.inspect.custom)]: [Function: inspect]
}
The text was updated successfully, but these errors were encountered:
Good morning! I'm trying to understand the process to have this looked at. I believe it's fairly straight forward but any help in moving this along would be appreciated.
On windows machines the underlying json-schema-ref-parser fails to correctly resolve resources but has been addressed in APIDevTools/json-schema-ref-parser#315. Updating the json-schema-ref-parser to version 11.1.0 corrects this issue. #639 resolves this.
with a file named "api.json" 2 directories up the following code throws the below error on windows but works as expected on MacOS and Linux
The text was updated successfully, but these errors were encountered: