IBM ODM:Swagger未生成变量的描述

发布于 2025-02-10 04:05:56 字数 379 浏览 0 评论 0原文

我们最近将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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文