Skip to content

[api] Make optional properties of project references optional - #64326

Open
Andrew Branch (andrewbranch) wants to merge 2 commits into
microsoft:mainfrom
andrewbranch:api/fix-project-references-json
Open

Andrew Branch (andrewbranch) wants to merge 2 commits into
microsoft:mainfrom
andrewbranch:api/fix-project-references-json

Conversation

@andrewbranch

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings September 18, 2026 23:01
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Sep 18, 2026
@typescript-automation typescript-automation Bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Existing sync and async response tests still expect circular: false and will fail with the new serialization.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Makes optional project-reference fields optional in the TypeScript API.

Changes:

  • Adds omitempty to Go JSON fields.
  • Regenerates optional TypeScript properties.
  • Adds an async API type assertion.
File Description
tsc/​internal/​core/​projectreference.go Makes optional fields omittable during JSON serialization.
packages/​typescript/​src/​api/​proto.generated.ts Exposes optional project-reference properties.
packages/​typescript/​test/​async/​api.test.ts Verifies references require only path.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

OriginalPath string `json:"originalPath,omitempty"`
// Circular indicates that this reference is intended to form a circularity.
Circular bool `json:"circular"`
Circular bool `json:"circular,omitempty"`
@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Needs merge

Development

Successfully merging this pull request may close these issues.

3 participants