使用atlassian.oai.validator将类似的错误分别为Java应用程序中的不同消息

发布于 2025-02-11 21:52:29 字数 454 浏览 0 评论 0原文

我正在尝试在Java应用程序中进行OpenAPI验证,并面临一些问题。

当我遇到类似的错误时

"id": "57ec990e-c3f0-4cb9-a402-128fcbe8e9ff",
"messages": [
    "Object has missing required properties ([\"author\",\"publisher\"])"]

,我需要分开类似的错误,

"id": "57ec990e-c3f0-4cb9-a402-128fcbe8e9ff",
"messages": [
    "Object has missing required property \"author\",
    "Object has missing required property \"publisher\"
    ]

该怎么办?

I am trying to make OpenApi validation in my Java application and faced with some problems.

When I get errors like

"id": "57ec990e-c3f0-4cb9-a402-128fcbe8e9ff",
"messages": [
    "Object has missing required properties ([\"author\",\"publisher\"])"]

But I need to separate similar errors like this

"id": "57ec990e-c3f0-4cb9-a402-128fcbe8e9ff",
"messages": [
    "Object has missing required property \"author\",
    "Object has missing required property \"publisher\"
    ]

How can I do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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