- changed status to resolved
Access remote swagger spec with authentication data not possible
Issue #41
resolved
Actually it is not possible to access a remote swagger spec which is protected e.g. by an api key header. This is because the class SwaggerRequestResponseValidator calls the SwaggerParser with null as auth information when get the spec from remote.
final SwaggerDeserializationResult swaggerParseResult =
swaggerJsonUrlOrPayload.startsWith("{") ?
new SwaggerParser().readWithInfo(swaggerJsonUrlOrPayload) :
new SwaggerParser().readWithInfo(swaggerJsonUrlOrPayload, null, true);
Comments (1)
-
- Log in to comment
Available in v1.0.15