-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.p0
Description
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'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.p0