Conversation
- Add @pageItems decorator when x-ms-list-page-items is true - Both @extension and @pageItems decorators are applied to the property - Add comprehensive unit tests for the feature Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>
Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for importing pageItems decorator from OpenAPI
feat(openapi3): add @pageItems decorator when x-ms-list-page-items extension is present
Feb 6, 2026
Closed
3 tasks
baywet
reviewed
Feb 6, 2026
.chronus/changes/copilot-add-openapi-pageitems-support-2026-1-6-17-35-14.md
Outdated
Show resolved
Hide resolved
baywet
approved these changes
Feb 6, 2026
timotheeguerin
approved these changes
Feb 6, 2026
commit: |
Contributor
|
All changed packages have been documented.
Show changes
|
Collaborator
|
You can try these changes here
|
timotheeguerin
approved these changes
Feb 6, 2026
timotheeguerin
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The OpenAPI importer wasn't generating the
@pageItemsdecorator for array properties annotated withx-ms-list-page-items: true.Changes
getDecoratorsForSchemato detectx-ms-list-page-items: trueand add@pageItemsdecorator@extensionand@pageItemsdecorators are now applied when the extension is presentExample
Input OpenAPI:
Generated TypeSpec:
Original prompt
This section details on the original issue you should resolve
<issue_title>Add support for importing the pageItems decorator based on the relevant OpenAPI extension</issue_title>
<issue_description>### Clear and concise description of the problem
Related https://github.com/microsoft/openai-openapi-pr/issues/568
Based on the following OpenAPI description, we should get the following TypeSpec definition imported