Skip to content

Investigate paging mismatch on some combination #647

@lmazuel

Description

@lmazuel

And if an operation defines a basic x-ms-pageable:

        "x-ms-pageable": {
          "nextLinkName": null
        }

And a model that uses x-ms-client-name:

"ListIndexesResult": {
      "properties": {
        "value": {
          "x-ms-client-name": "Indexes",
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/definitions/SearchIndex"
          },
          "description": "The indexes in the Search service."
        }
      },
      "required": [
        "value"
      ],
      "description": "Response from a List Indexes request. If successful, it includes the full definitions of all indexes."
    },

We generate the wrong code, we try to access value where we should access indexes:

    async def extract_data(pipeline_response):
        deserialized = self._deserialize('ListIndexesResult', pipeline_response)
>       list_of_elem = deserialized.value
E       AttributeError: 'ListIndexesResult' object has no attribute 'value'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue requires a change to an existing behavior in the product in order to be resolved.p0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions