模型派生 API 响应未通过 Jackson 映射 [英] Model Derivative API responses not mapping through Jackson

查看:23
本文介绍了模型派生 API 响应未通过 Jackson 映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否对模型衍生 API 的响应对象进行了更新,因为我们在将 3D 模型请求的响应映射回清单和元数据对象时遇到问题.

两者都在抛出杰克逊错误.

  1. GetManifest 返回一个未处理的角色枚举
  2. GetMetadataForGuid 正在抛出 - 非法字符((CTRL-CHAR,代码 31))

谢谢

解决方案

我知道这个问题出了什么问题.Get Manifest 端点的响应最近确实发生了一些变化.除了用于 Revit 生成的清单的几何节点之外,还有一个属性数据库节点.因此,一个新角色是Autodesk.CloudPlatform.PropertyDatabase".而旧的 JAVA 对象

要修复它,您只需在

我已请求提交 JAVA SDK.如果您将 SDK 源代码合并到您的项目中,您可以直接在您身边修改它.

希望这会有所帮助.

Have there been updates made to the response objects from the Model Derivative API as we are having issues mapping the responses from requests for 3D models back into the Manifest and Metadata objects.

Both are throwing Jackson errors.

  1. GetManifest is returning an unhandled role enum
  2. GetMetadataForGuid is throwing - Illegal character ((CTRL-CHAR, code 31))

Thanks

解决方案

I got what's wrong with the issue. The response of Get Manifest endpoint did changed a bit recently. There will a property database node aside the geometry nodes for Revit generated manifest. So one new role is 'Autodesk.CloudPlatform.PropertyDatabase'. While the old JAVA object ManifestChildren.JAVA does not declare the role. which caused the failure.

To fix it, you can simply add the new role in ManifestChildren.JAVA e.g.

i have requested a commit for JAVA SDK. you could modify it directly at your side if you merge the SDK source code to your project.

Hope this helps.

这篇关于模型派生 API 响应未通过 Jackson 映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆