Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
11 stars 36 forks source link

Add `itemName` for paged operations in generated openapi spec #1291

Closed catalinaperalta closed 4 days ago

catalinaperalta commented 1 month ago

When defining a paged operation in TypeSpec, folks who are still relying on the generated openapi spec need the itemName field to be part of the x-ms-pageable data. typespec-autorest should output this information.

Playground: example

Current output:

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

Expected output:

        "x-ms-pageable": {
          "itemName": "items",
          "nextLinkName": "nextLink"
        }
catalinaperalta commented 1 month ago
timotheeguerin commented 1 month ago

Smaller repro