IBM ODM:Swagger未生成变量的描述
我们最近将ODM 8.10升级到ODM 8.11。
我已经使用 @jsonpropertydescription 注释在生成swagger时添加了输入和输出对象变量的描述(使用“检索HTDS Description File”和OpenAPI -JSON选项)。代码:
@JsonPropertyDescription("Description here")
private String id;
项目代码保持不变,并且似乎不再在ODM 8.11中使用。用户制作的对象的描述或默认值未添加到生成的招摇中。保留默认变量和对象的描述(例如__DecisionId__或错误对象)。
是ODM 8.11中的错误吗?还是我应该使用不同的注释?
We recently upgraded from ODM 8.10 to ODM 8.11.
I have used @JsonPropertyDescription annotation to have descriptions added to variables of input and output object when generating a swagger (using the "Retrieve HTDS Description File" and OpenAPI - JSON option). The code:
@JsonPropertyDescription("Description here")
private String id;
The project code stayed the same and it doesn't seem to work in ODM 8.11 anymore. Descriptions nor default values for objects made by the user are not added to the generated Swagger. Descriptions for default variables and objects remain (such as __DecisionId__ or Error object).
Is it a bug in ODM 8.11? Or am I supposed to use different annotations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论