Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 27, 2025

  • Add regular @pageSize query parameter test operation
  • Add nested @pageSize parameter test operation using PaginationOptions model
  • Implement corresponding mockapi handlers for both test cases
  • Validate all scenarios with tsp-spector validate-scenarios
  • Add changeset for the new feature using pnpm change add

All tests pass and the TypeSpec operations compile correctly. The changeset has been added as requested for the @typespec/http-specs package with changeKind: feature.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

- Add regular @pageSize query parameter test operation with pageSize=2 and pageSize=4 scenarios
- Add nested @pageSize parameter test operation using PaginationOptions model
- Implement corresponding mockapi handlers for both test cases
- All scenarios validate successfully and TypeSpec compilation works correctly

Co-authored-by: iscai-msft <43154838+iscai-msft@users.noreply.github.com>
Copilot AI changed the title [WIP] [specs] add test for @pageSize parameter [specs] Add test for @pageSize parameter Aug 27, 2025
Copilot AI requested a review from iscai-msft August 27, 2025 19:26
Co-authored-by: iscai-msft <43154838+iscai-msft@users.noreply.github.com>
@iscai-msft
Copy link
Member

@copilot run pnpm build at the root of the repo

Copy link
Contributor Author

Copilot AI commented Aug 28, 2025

@copilot run pnpm build at the root of the repo

Build completed successfully. All packages built without errors, including the compiler, libraries, emitters, website, and all other components. The build took about 7 minutes to complete as expected for a full TypeSpec repository build.

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
    • Triggering command: node /home/REDACTED/work/typespec/typespec/website/node_modules/.bin/../astro/astro.js build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Co-authored-by: iscai-msft <43154838+iscai-msft@users.noreply.github.com>
Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2025

All changed packages have been documented.

  • @typespec/http-specs
Show changes

@typespec/http-specs - feature ✏️

Add @pageSize parameter tests for pageable payload specs

@iscai-msft iscai-msft added this pull request to the merge queue Sep 19, 2025
Merged via the queue into main with commit 685460c Sep 19, 2025
22 checks passed
@iscai-msft iscai-msft deleted the copilot/fix-8306 branch September 19, 2025 16:39
""")
@route("/without-continuation")
@list
op listWithoutContinuation(): {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was inadvertently moved under PageSize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants