Skip to content

Add optional array body Spector scenario#10863

Open
ArcturusZhang wants to merge 6 commits into
microsoft:mainfrom
ArcturusZhang:add-optional-array-body-spector
Open

Add optional array body Spector scenario#10863
ArcturusZhang wants to merge 6 commits into
microsoft:mainfrom
ArcturusZhang:add-optional-array-body-spector

Conversation

@ArcturusZhang

Copy link
Copy Markdown
Member

Summary

Adds coverage to the existing type/array Spector group for optional array request bodies. The new scenario verifies both sending an array body and omitting the optional body entirely.

Validation

  • pnpm exec prettier --write packages/http-specs/specs/type/array/main.tsp packages/http-specs/specs/type/array/mockapi.ts
  • pnpm exec tsc -p packages/http-specs/tsconfig.build.json
  • pnpm --filter @typespec/http-specs validate-scenarios
  • pnpm --filter @typespec/http-specs validate-mock-apis

Cover omitted optional array request bodies in the existing type/array Spector group.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the lib:http-specs For issues/prs related to the @typespec/http-specs package label Jun 2, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jun 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-specs@10863

commit: d9421be

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/http-specs
Show changes

@typespec/http-specs - internal ✏️

Add Spector coverage for omitted optional array request bodies.

Keep only the omitted optional array body case in the existing type/array group.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-sdk-automation

azure-sdk-automation Bot commented Jun 2, 2026

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

ArcturusZhang and others added 4 commits June 2, 2026 16:38
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the stale Mark a PR that hasn't been recently updated and will be closed. label Jun 16, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Hi @@ArcturusZhang. Your PR has had no update for 14 days and it is marked as a stale PR. If it is not updated within 14 additional days, the PR will automatically be closed. If you want to refresh the PR, please remove the stale label.

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

Labels

lib:http-specs For issues/prs related to the @typespec/http-specs package stale Mark a PR that hasn't been recently updated and will be closed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant