Configurations ==>
- OpenAPI version : 3.0.0
- Swagger-parser 2.0.26
Issue ==>
I am using the resolveFully parse option as mentioned in the documentation but seems its not working for most of my usecases which involve callbacks and path item for callbacks.
ParseOptions parseOptions = new ParseOptions();
parseOptions.setResolve(true);
parseOptions.setResolveFully(true);
OpenAPI result = new OpenAPIV3Parser().read("Swagger.json", null, parseOptions);
My use-cases for Callbacks related PathItem are like below ==>
- Resolving nested schemas that might be referenced from "#components/schemas/"
- Resolving requestBody referenced from "#components/requestBodies/"
- Resolving response referenced from "#components/responses/"
- Resolving callback referenced from "#components/callbacks/"
- Combination of point 2,1
- Combination of point 3,1
- Combination of point 4,3,21
Looks like an issue. Technically it should resolve the local references and place it as the inline definitions in the OpenAPI document java object, if I am not mistaken reading the mentioned here.