ParseOptions parseOptions = new ParseOptions();
parseOptions.setResolve(true);
new OpenAPIV3Parser().read("merged_spec12.yaml", null, parseOptions);
Current behavior
It is parsed with refs containing reference to original file, but with renamed schema component name
($ref: ./spec1.yaml#/components/schemas/myType_1 at .paths[].get.parameters[].schema.items):
It is parsed with refs containing internal reference to renamed schema component in the same file.
($ref: '#/components/schemas/myType_1' at .paths[].get.parameters[].schema.items):
Description
Schema ref of array-type operation parameter is not resolved if:
Example
merged_spec12.yaml
:spec1.yaml
:spec2.yaml
:code
:Current behavior
It is parsed with refs containing reference to original file, but with renamed schema component name (
$ref: ./spec1.yaml#/components/schemas/myType_1
at.paths[].get.parameters[].schema.items
):Expected behavior
It is parsed with refs containing internal reference to renamed schema component in the same file. (
$ref: '#/components/schemas/myType_1'
at.paths[].get.parameters[].schema.items
):Proposed fix
I tried to fix the issue, I'll make pull request.