forge-api-java-client
forge-api-java-client copied to clipboard
problem on DerivativesApi.translate
Hi everyone, in translating a revit file I got this exception
om.sun.jersey.api.client.ClientHandlerException: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.lang.String out of START_ARRAY token
at [Source: (GZIPInputStream); line: 1, column: 1590] (through reference chain: com.autodesk.client.model.Manifest["derivatives"]->java.util.ArrayList[0]->com.autodesk.client.model.ManifestDerivative["children"]->java.util.ArrayList[4]->com.autodesk.client.model.ManifestChildren["phaseNames"])
I patch the ManifestChildren class with this
@JsonProperty("phaseNames")
@JsonFormat(with = Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)
private List<String> phaseNames = new ArrayList<>();
Is it the right way? Thanks in advance.