Skip to content

problem on DerivativesApi.translate #43

@ilseva

Description

@ilseva

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions