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
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 2, 2026

Open in StackBlitz

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

commit: d9421be

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

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
Copy link
Copy Markdown

azure-sdk-automation Bot commented Jun 2, 2026

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>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant