feat(openapi3): add @offset decorator for x-ms-list-offset extension#9613
Merged
feat(openapi3): add @offset decorator for x-ms-list-offset extension#9613
Conversation
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 the offset decorator
feat(openapi3): add @pageIndex decorator for x-ms-list-offset extension
Feb 6, 2026
baywet
approved these changes
Feb 6, 2026
commit: |
baywet
reviewed
Feb 6, 2026
.chronus/changes/copilot-add-offset-decorator-import-2026-1-6-17-31-20.md
Outdated
Show resolved
Hide resolved
baywet
reviewed
Feb 6, 2026
baywet
approved these changes
Feb 6, 2026
Contributor
|
All changed packages have been documented.
Show changes
|
.chronus/changes/copilot-add-offset-decorator-import-2026-1-6-17-31-20.md
Outdated
Show resolved
Hide resolved
timotheeguerin
approved these changes
Feb 6, 2026
Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
Collaborator
|
You can try these changes here
|
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 now emits the
@pageIndexdecorator when encounteringx-ms-list-offset: trueon query parameters.Changes
getParameterDecorators(): Detectsx-ms-list-offset: trueextension and adds@pageIndexdecorator alongside the existing@extensiondecoratorExample
OpenAPI input:
TypeSpec output:
The
@extensiondecorator was already being emitted by existing code; this change adds the semantic@pageIndexdecorator when appropriate.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
telemetry.astro.build/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/typespec/typespec/website/node_modules/.bin/../astro/astro.js build node nts/�� ebsite/src/conte--llmstxt sh _modules/.bin/no../../website/src/content/docs/docs/emitters/openapi3/reference --no-emit bash ents/reference uname tobu�� astro check --minimumFailingSeve--typekits sh tnet/tools/sh ld.json && pnpm node bash tobuf/reference node(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This section details on the original issue you should resolve
<issue_title>Add support for importing the offset 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