Wrong error is given when opening an invalid OpenAPI YAML
See original GitHub issueOpening 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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This zip contains a complete reproducer
hi @slinkydeveloper can you please provide a failing test to parser. It will be faster to solve. Thanks