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.

Wrong error is given when opening an invalid OpenAPI YAML

See original GitHub issue

Opening an invalid OpenAPI 3 YAML produces Wrong specification url/path: .. error message.

Issue appears to be with the general handling of any error with in the io.swagger.v3.parser.OpenAPIV3Parser#readWithInfo(java.lang.String, java.util.List<io.swagger.v3.parser.core.models.AuthorizationValue>) method. There should be a try/catch around the Object mapper to handle parse exceptions and provide a better error to the console.

See: https://github.com/vert-x3/vertx-web/issues/1004

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
slinkydevelopercommented, Jan 9, 2019

This zip contains a complete reproducer

1reaction
gracekarinacommented, Dec 14, 2018

hi @slinkydeveloper can you please provide a failing test to parser. It will be faster to solve. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid OpenAPI file. Please fix the schema errors
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group. To unsubscribe from this group and stop...
Read more >
Fix OpenAPI annotation problems for GitLab REST API
This has caused some invalid code annotations resulting in an invalid OpenAPI document. The invalid document is unable to be used by DAST...
Read more >
Open API/Swagger: on run Code generator get runtime error
last stacktrace is about attempting to generate code from openapi 3 specification using second generator version - they are incompatible, we already have...
Read more >
Error when saving OpenAPI specification in Azure Api ...
"The field serviceUrl is invalid." Even if I don't change the document and just open it and click save, I still get the...
Read more >
Usage - OpenAPI Generator
Commands are presented here in a logical progression as a tutorial, ... openapi-generator-cli validate -i petstore-v3.0-invalid.yaml.
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