[英]resolveFully doesn't resolve nested references or normal references for Callbacks related PathItem
Configurations ==>配置==>
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 .问题==> 我正在使用文档中提到的
resolveFully
解析选项,但似乎它不适用于我的大多数用例,这些用例涉及回调和回调路径项。
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 ==>我的回调相关 PathItem 用例如下所示==>
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 .
从技术上讲,它应该解析本地引用并将其作为 OpenAPI 文档 java 对象中的内联定义,如果我没有错误地阅读这里提到的内容。
Actually, the Callbacks PathItem related members were not getting resolved using the resolveFully ParseOptions that we set as shown in code snippet.实际上,使用我们在代码片段中设置的 resolveFully ParseOptions 并没有解决与 Callbacks PathItem 相关的成员。
Please refer to this PR for the same issue raised by me on the SwaggerParser project and now its closed as the PR was merged to master.有关我在 SwaggerParser 项目中提出的相同问题,请参阅此PR,现在它已关闭,因为 PR 已合并到 master。
Hopefully, it should be a part of the 2.0.28 release.希望它应该是 2.0.28 版本的一部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.