- edited description
Error using the library
Issue #164
resolved
Hi everyone,
I have this error when I use the library:
io.swagger.parser.OpenAPIParser.readLocation(Ljava/lang/String;Ljava/util/List;Lio/swagger/v3/parser/core/models/ParseOptions;)Lio/swagger/v3/parser/core/models/SwaggerParseResult;"
I call the methods this way :
String myswagger = "myswagger"; (Contains a swagger specification instring value)
OpenApiInteractionValidator validator = OpenApiInteractionValidator
.createFor(myswagger)
.build();
OpenApiValidationService openApiValidationService = new OpenApiValidationService(validator);
Request request = openApiValidationService.buildRequest(myRequest);
validator.validateRequest(request).getMessages();
Can you help me ?
Regards
Comments (3)
-
-
Hi - thanks for raising this.
Any chance you could provide the full (or at least more complete) stack trace?
Also - can I confirm that the loading is actually failing? The validator will first try to treat the
myswagger
as a file location, then it will fall back to treating it as a content string. I just want to be sure that you're seeing an actual failure and not just some logging coming from the swagger parser.Cheers.
-
- changed status to resolved
Closing due to inactivity.
- Log in to comment