Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Array types used in XML generation use item ref name instead of property name for Jackson annotation #2043

Closed

Description

Describe the bug
When array types are used in XML generation, it uses the item ref name instead of the property name for the Jackson annotation.

For example, in the Swagger file PathList is defined as the following:

"PathList": {
"type": "object",
"properties": {
"paths": {
"type": "array",
"items": {
"$ref": "#/definitions/Path"
}
}
}
}

But the paths property uses a serialization name of Path ( @JsonProperty(value = "Path")) instead of paths ( @JsonProperty(value = "paths")).

What we have been doing as a workaround is we need to add the following customization,
https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/storage/azure-storage-file-datalake/swagger/src/main/java/DataLakeStorageCustomization.java#L29

Which then allows @JsonProperty(value = "paths") to appear.
https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathList.java#L20

But this is not ideal. Is there any fix for this so that we can remove the dependency on customization code?

Thanks!

Activity

  1. alzimmermsft commented on Nov 7, 2025

    @alzimmermsft
    Member

    Closing as this should be fixed in latest versions when using stream-style serialization, the default serialization code generation and the preferred choice going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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