Skip to content
This repository was archived by the owner on Nov 24, 2022. It is now read-only.

Commit 3ad8f89

Browse files
committed
Fixed test failure
1 parent bec9206 commit 3ad8f89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/processors/ParameterProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public List<Parameter> processParameters(List<Parameter> parameters) {
8383
if (parameter.get$ref() != null) {
8484
RefFormat refFormat = computeRefFormat(parameter.get$ref());
8585
final Parameter resolvedParameter = cache.loadRef(parameter.get$ref(), refFormat, Parameter.class);
86-
if (parameter.get$ref().indexOf("#/components/parameters") <= -1) {
86+
if (parameter.get$ref().startsWith("#") && parameter.get$ref().indexOf("#/components/parameters") <= -1) {
8787
//TODO: Not possible to add warning during resolve doesn't accept result as an input. Hence commented below line.
8888
//result.warning(location, "The parameter should use Reference Object to link to parameters that are defined at the OpenAPI Object's components/parameters.");
8989
continue;

0 commit comments

Comments
 (0)