microsoft / microsoft/typespec

[typespec-python] Support paging for xml

Open
#7,756 6 comments 0 reactions 1 assignee Claimed by @msyyc View on GitHub
emitter:client:python feature
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

Tried to generate with the blob storage spec and ran into an issue with the generator, seems it has an issue with the definition of a paged operation. I think it might be due to some uncommon behavior that the blob spec defines, but that's just a guess. Sharing the error output below.

Command used (with latest main of the python repo): tsp-client init -c https://github.com/Azure/azure-rest-api-specs/blob/0fb24e5a13f2eaa86af724acef4b725d0b3d0ca7/specification/storage/Microsoft.BlobStorage/tspconfig.yaml

**Maybe** this issue is related to the paging implementation in storage: [[Bug]: current `PagingOperation` output does not support pageable decorator in nested properties · Issue #5208 · microsoft/typespec](https://github.com/microsoft/typespec/issues/5208)

[blob-error.txt](https://github.com/user-attachments/files/20914838/blob-error.txt)

cc @msyyc @tadelesh @iscai-msft

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.