question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to not throw error if corresponding $ref could not be resolved in oas-resolver.

See original GitHub issue

Checklist

  • Conversion: I have checked my source definition is valid OpenAPI 2.0
  • Conversion: On valid OpenAPI 2.0 input, the conversion looks wrong
  • Validation: I believe my source definition is valid OpenAPI 3.0.x but the validator complains
  • Validation: I believe my source definition is invalid OpenAPI 3.0.x but the validator does not complain
  • Linting issue
  • Resolver issue

Detailed Description

While using oas-resolver I could not found a way to not throw the error if $ref could not be resolved. Is there any way to achieve this use case where correctly defined $ref will be resolved and wrong $ref will be present in the result as is instead throwing error.

Other stuff

Using oas-resolver@2.3.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
VShingalacommented, Sep 21, 2020

@MikeRalphson Thanks for such a quick response!

I have verified the option ignoreIOErrors on oas-resolver@2.5.0 and is working as expected for my use case.

0reactions
MikeRalphsoncommented, Sep 21, 2020

Many thanks for confirming.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception is never thrown in body of corresponding try statement
A catch-block in a try statement needs to catch exactly the exception that the code inside the try {} -block can throw (or...
Read more >
10 Handling PL/SQL Errors
Sometimes the error is not immediately obvious, and could not be detected until later when you perform calculations using bad data. Again, a...
Read more >
Bug - Error on import google External Dependency Manager ...
Just import tgz package External Dependency Manager for Unity 1.2.166 and Firebase App 8.2.0 into blank unity project cause this error ...
Read more >
throw - JavaScript - MDN Web Docs - Mozilla
The throw statement throws a user-defined exception. ... If no catch block exists among caller functions, the program will terminate.
Read more >
Exception Handling in Spring MVC
When an annotated exception is thrown from a controller method, and not handled elsewhere, it will automatically cause the appropriate HTTP ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found