Closed jaishirole closed 3 years ago
@philsturgeon @P0lip This is my first PR, please review and let me know your comments. I would also need your help to trigger the pipeline tests for sanity of the PR. I've locally run the unit tests and they're passing, except a known failure of unsupported 3.1.0 version in real-world APIs test suite.
Sorry @jaishirole, bagsy not it. I'm out in the mountains on a big vacation and cannot help.
@P0lip if you're around can you help? Or can you pass it over to somebody who can?
Phil @philsturgeon , did the last push too! Hope you'll like it, halved the size of the json files but no compromise on what we wanted to test. :)
I'm on it to fix the lint errors, not sure why my VS Code didn't catch it earlier.
@philsturgeon
I pushed another commit to address the lint errors that showed failures in checks. That has overridden your approval. Can you help run the workflows again? Locally npm run lint
doesn't show any errors now and the unit tests too are passing still.
Hi Phil @philsturgeon , it looks like the usage of 'Optional chaining' aka ?
in my code is causing a problem with some of the tests: node12 on Ubuntu and Browser Tests. I guess I need to move away from ?
as it probably is perceived to be used only as a ternary
operator by these test environments?
Hi Phil @philsturgeon , it looks like the usage of 'Optional chaining' aka
?
in my code is causing a problem with some of the tests: node12 on Ubuntu and Browser Tests. I guess I need to move away from?
as it probably is perceived to be used only as aternary
operator by these test environments?
@philsturgeon Another push for moving away from ?
chaining parameter. Please help to kick off the check workflows.
Phil @philsturgeon , the browser tests failed for not having the 'url' module available there. I've changed the code to use the 'url' exported from existing dependency of @apidevtools/json-schema-ref-parser
which takes care of browser v/s node environments.
Now the npm run coverage:browser
is passing on my local system where I've Firefox & Safari browsers.
If you trigger the checks workflow, looking forward to next results now.
Hi Phil (@philsturgeon ) , not sure what the latest failure is about. Can you help me understand what is still left? I guess it failed for?
18 08 2021 21:01:36.741:ERROR [launcher]: No binary for Edge browser on your platform.
Please, set "EDGE_BIN" env variable.
18 08 2021 21:01:36.995:ERROR [launcher]: No binary for Safari browser on your platform.
Please, set "SAFARI_BIN" env variable.
@philsturgeon I am seeing what was reported here: https://github.com/APIDevTools/swagger-parser/pull/178#issuecomment-897211445 and perhaps it is a known issue and nothing with the code checked-in here.
@philsturgeon Thanks much for all your guidance on this first PR of mine!
Issue reference: https://github.com/APIDevTools/swagger-parser/issues/153